CVS update: php3/doc/functions

From: Date: Mon, 21 Dec 1998 20:52:37 +0000
Subject: CVS update: php3/doc/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-2975@lists.php.net to get a copy of this message
Date: Monday December 21, 1998 @ 15:52 Author: kk Update of /repository/php3/doc/functions In directory asf:/u/temp/cvs-serv5960/doc/functions Modified Files: math.sgml Log Message: Mersenne Twister documentation update: URLs included. Index: php3/doc/functions/math.sgml diff -c php3/doc/functions/math.sgml:1.20 php3/doc/functions/math.sgml:1.21 *** php3/doc/functions/math.sgml:1.20 Mon Dec 21 15:45:21 1998 --- php3/doc/functions/math.sgml Mon Dec 21 15:52:36 1998 *************** *** 538,551 **** <simpara> Many random number generators of older libcs have dubious ! or unknown characteristics. By default, PHP uses the libc random number generator with the <function>rand()</function> function. <function>mt_rand()</function> function is a drop-in replacement for this. It uses a random number generator with known characteristics, the Mersenne Twister, which will produce random numbers that should be suitable for ! cryptographic purposes. <simpara> If called without the optional min,max arguments mt_rand() returns a pseudo-random value between 0 and RAND_MAX. If --- 538,556 ---- <simpara> Many random number generators of older libcs have dubious ! or unknown characteristics and are slow. By default, PHP uses the libc random number generator with the <function>rand()</function> function. <function>mt_rand()</function> function is a drop-in replacement for this. It uses a random number generator with known characteristics, the Mersenne Twister, which will produce random numbers that should be suitable for ! cryptographic purposes and is four times faster than ! what the average libc provides. The Homepage of the Mersenne Twister ! can be found at <ulink url="http://www.math.keio.ac.jp/~matumoto/emt.html">http://www.math.keio.ac.jp/~matumoto/emt.html</ulink>, ! and an optimized version of the MT source is available from ! <ulink url="http://www.scp.syr.edu/~marc/hawk/twister.html">http://www.scp.syr.edu/~marc/hawk/twister.html</ulink>. ! <simpara> If called without the optional min,max arguments mt_rand() returns a pseudo-random value between 0 and RAND_MAX. If -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#2975) next »