From 44b06385a67779b0c93f1e2ea79a212c4aa0889a Mon Sep 17 00:00:00 2001 From: Marek Isalski Date: Sun, 13 Mar 2016 09:24:20 +0100 Subject: [PATCH] stir in some microtime to the PHP MT seed --- fulcrm_uuid.module | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fulcrm_uuid.module b/fulcrm_uuid.module index 08de430..d501c79 100644 --- a/fulcrm_uuid.module +++ b/fulcrm_uuid.module @@ -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() {