cvs: php4(PHP_4_3) /ext/standard lcg.c
| From: | Sascha Schumann | Date: | Mon, 31 Mar 2003 03:24:45 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/standard lcg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19868@lists.php.net to get a copy of this message | ||
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));