sas Sun Mar 30 22:24:45 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/standard lcg.c
Log:
MFH
Index: php4/ext/standard/lcg.c
diff -u php4/ext/standard/lcg.c:1.33.2.1 php4/ext/standard/lcg.c:1.33.2.2
--- php4/ext/standard/lcg.c:1.33.2.1 Tue Dec 31 11:35:31 2002
+++ php4/ext/standard/lcg.c Sun Mar 30 22:24:45 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: lcg.c,v 1.33.2.1 2002/12/31 16:35:31 sebastian Exp $ */
+/* $Id: lcg.c,v 1.33.2.2 2003/03/31 03:24:45 sas Exp $ */
#include "php.h"
#include "php_lcg.h"
@@ -61,6 +61,10 @@
{
php_int32 q;
php_int32 z;
+
+ if (!LCG(seeded)) {
+ lcg_seed(TSRMLS_C);
+ }
MODMULT(53668, 40014, 12211, 2147483563L, LCG(s1));
MODMULT(52774, 40692, 3791, 2147483399L, LCG(s2));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php