note 17093 added to function.srand
| From: | nospam at moderndesign dot net | Date: | Mon, 26 Nov 2001 10:56:46 +0000 |
| Subject: | note 17093 added to function.srand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-21276@lists.php.net to get a copy of this message | ||
Hi !
OK, I asked at some boards and got no answer:
I coded PHP in pure object orientated way and found that
randomness seems bad if srand() is called only once per
process, but fine, if it's called once by every object
which needs rand().
I'd like to know, if I'm right. Thanx.
--
http://www.php.net/manual/en/function.srand.php
http://master.php.net/manage/user-notes.php?action=edit+17093
http://master.php.net/manage/user-notes.php?action=delete+17093
http://master.php.net/manage/user-notes.php?action=reject+17093