stir in some microtime to the PHP MT seed

This commit is contained in:
Marek Isalski 2016-03-13 09:24:20 +01:00
parent 9616428995
commit 44b06385a6

View File

@ -3,6 +3,8 @@
function fulcrm_uuid_stir_mt_srand() {
$e1 = variable_get( 'fulcrm_uuid_entropy_1', '' );
mt_srand( crc32( $e1 ) );
if ( function_exists( 'microtime' ) )
mt_srand( crc32( microtime() ) );
}
function fulcrm_uuid_stir_entropy() {