summaryrefslogtreecommitdiff
path: root/ext/standard/lcg.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-09-05 19:47:55 +0000
committerfoobar <sniper@php.net>2001-09-05 19:47:55 +0000
commit42b5521af505eaddfd4891703da8120865896258 (patch)
treec80bb41e38dba221361ce7eb504f28eb557014bd /ext/standard/lcg.c
parent24b54b866fc36fed094c1f455e0174c99c24ee40 (diff)
downloadphp-git-42b5521af505eaddfd4891703da8120865896258.tar.gz
revert bad commit.
Diffstat (limited to 'ext/standard/lcg.c')
-rw-r--r--ext/standard/lcg.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/ext/standard/lcg.c b/ext/standard/lcg.c
index f211317d73..7ae45a0ef0 100644
--- a/ext/standard/lcg.c
+++ b/ext/standard/lcg.c
@@ -42,11 +42,6 @@ static int php_lcg_initialized = 0;
* 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.
- *
- * There are only about 65k distinct starting values, that's
- * not much... If PHP is running as CGI, randomness is quite bad.
- * If it is run as a module, it's long-livin', so no problem in that
- * case.
*/
#define MODMULT(a, b, c, m, s) q = s/a;s=b*(s-a*q)-c*q;if(s<0)s+=m
@@ -108,5 +103,5 @@ PHP_FUNCTION(lcg_value)
* c-basic-offset: 4
* End:
* vim600: sw=4 ts=4 tw=78 fdm=marker
- * vim<600: sw=8 ts=8 tw=78
+ * vim<600: sw=4 ts=4 tw=78
*/