mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
ws
This commit is contained in:
+2
-3
@@ -36,7 +36,6 @@ int lcg_globals_id;
|
||||
#else
|
||||
static php_lcg_globals lcg_globals;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
#include <process.h>
|
||||
@@ -44,7 +43,7 @@ static php_lcg_globals lcg_globals;
|
||||
|
||||
/*
|
||||
* combinedLCG() returns a pseudo random number in the range of (0, 1).
|
||||
* The function combines two CGs with periods of
|
||||
* The function combines two CGs with periods of
|
||||
* 2^31 - 85 and 2^31 - 249. The period of this function
|
||||
* is equal to the product of both primes.
|
||||
*/
|
||||
@@ -57,7 +56,7 @@ PHPAPI double php_combined_lcg(TSRMLS_D) /* {{{ */
|
||||
{
|
||||
php_int32 q;
|
||||
php_int32 z;
|
||||
|
||||
|
||||
if (!LCG(seeded)) {
|
||||
lcg_seed(TSRMLS_C);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user