summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTATAR Balazs Janos <tatarbj@gmail.com>2018-02-22 17:10:33 +0100
committerJoe Watkins <krakjoe@php.net>2018-03-27 22:09:08 +0200
commitac4d9fd0557cefe7a833bf1b0e97078010789a95 (patch)
tree892956b40e3f23721a22e0091a7327b5163e4ac5
parent63934ea71e719cfc43e94167474f936d8da938de (diff)
downloadphp-git-ac4d9fd0557cefe7a833bf1b0e97078010789a95.tar.gz
Fixed #75996: Add the right urls to the header of mt_rand.
-rw-r--r--NEWS3
-rw-r--r--ext/standard/mt_rand.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index db2833d792..600ba46c63 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,9 @@ PHP NEWS
. Fixed bug #76131 (mismatch arginfo for splarray constructor).
(carusogabriel)
+- standard:
+ . Fixed bug #75996 (incorrect url in header for mt_rand). (tatarbj)
+
29 Mar 2018, PHP 7.1.16
- Core:
diff --git a/ext/standard/mt_rand.c b/ext/standard/mt_rand.c
index 46f23d1327..3d02c48d67 100644
--- a/ext/standard/mt_rand.c
+++ b/ext/standard/mt_rand.c
@@ -34,7 +34,7 @@
/*
The following php_mt_...() functions are based on a C++ class MTRand by
Richard J. Wagner. For more information see the web page at
- http://www-personal.engin.umich.edu/~wagnerr/MersenneTwister.html
+ http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/VERSIONS/C-LANG/MersenneTwister.h
Mersenne Twister random number generator -- a C++ class MTRand
Based on code by Makoto Matsumoto, Takuji Nishimura, and Shawn Cokus
@@ -45,7 +45,7 @@
The period, 2^19937-1, and the order of equidistribution, 623 dimensions,
are far greater. The generator is also fast; it avoids multiplication and
division, and it benefits from caches and pipelines. For more information
- see the inventors' web page at http://www.math.keio.ac.jp/~matumoto/emt.html
+ see the inventors' web page at http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html
Reference
M. Matsumoto and T. Nishimura, "Mersenne Twister: A 623-Dimensionally