note 28245 added to function.rand
| From: | php-manual at omershenker dot net | Date: | Tue, 07 Jan 2003 02:21:28 +0000 |
| Subject: | note 28245 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41774@lists.php.net to get a copy of this message | ||
Regarding using radioactive decay and other physical sources of randomness:
Yes, using physical phenomena from a web site gives you better random numbers, but NOT FOR SECURE
USES. Why? Because if you get them off the Internet, so can an attacker. If you want a good
compromise that doesn't involve buying your own high-resolution scientific measurement
equipment, there are systems that collect entropy from things like the time between successive key
presses or TCP connections.
Omer Shenker
--
http://www.php.net/manual/en/function.rand.php
http://master.php.net/manage/user-notes.php?action=edit+28245
http://master.php.net/manage/user-notes.php?action=delete+28245
http://master.php.net/manage/user-notes.php?action=reject+28245