CVS update: php3/doc/functions

From: Date: Mon, 21 Dec 1998 21:31:07 +0000
Subject: CVS update: php3/doc/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-2979@lists.php.net to get a copy of this message
Date: Monday December 21, 1998 @ 16:31 Author: eschmid Update of /repository/php3/doc/functions In directory asf:/u/temp/cvs-serv6284 Modified Files: math.sgml Log Message: character '_' is not allowed in the value of attribute 'ID' Index: php3/doc/functions/math.sgml diff -c php3/doc/functions/math.sgml:1.21 php3/doc/functions/math.sgml:1.22 *** php3/doc/functions/math.sgml:1.21 Mon Dec 21 15:52:36 1998 --- php3/doc/functions/math.sgml Mon Dec 21 16:31:06 1998 *************** *** 523,529 **** </refsect1> </refentry> ! <refentry id="function.mt_rand"> <refnamediv> <refname>mt_rand</refname> <refpurpose>generate a better random value</refpurpose> --- 523,529 ---- </refsect1> </refentry> ! <refentry id="function.mt-rand"> <refnamediv> <refname>mt_rand</refname> <refpurpose>generate a better random value</refpurpose> *************** *** 537,561 **** </funcsynopsis> <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 ! you want a random number between 5 and 15 (inclusive), for ! example, use mt_rand(5,15). <simpara> Remember to seed the random number generator before use with <function>mt_srand</function>. --- 537,561 ---- </funcsynopsis> <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 ! <function>mt_rand</function> returns a pseudo-random value ! between 0 and RAND_MAX. If you want a random number between 5 ! and 15 (inclusive), for example, use mt_rand(5,15). <simpara> Remember to seed the random number generator before use with <function>mt_srand</function>. *************** *** 568,574 **** </refsect1> </refentry> ! <refentry id="function.mt_srand"> <refnamediv> <refname>mt_srand</refname> <refpurpose>seed the better random number generator</refpurpose> --- 568,574 ---- </refsect1> </refentry> ! <refentry id="function.mt-srand"> <refnamediv> <refname>mt_srand</refname> <refpurpose>seed the better random number generator</refpurpose> *************** *** 602,608 **** </refsect1> </refentry> ! <refentry id="function.mt_getrandmax"> <refnamediv> <refname>mt_getrandmax</refname> <refpurpose>show largest possible random value</refpurpose> --- 602,608 ---- </refsect1> </refentry> ! <refentry id="function.mt-getrandmax"> <refnamediv> <refname>mt_getrandmax</refname> <refpurpose>show largest possible random value</refpurpose> -- 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 (#2979) next »