note 57873 added to function.mcrypt-create-iv
| From: | Anonymous at osu1 dot php dot net | Date: | Mon, 17 Oct 2005 16:01:21 +0000 |
| Subject: | note 57873 added to function.mcrypt-create-iv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97121@lists.php.net to get a copy of this message | ||
At:
edwardzyang at thewritingpot dot com
19-Jul-2005 10:06
This is because of the fact, that (like described in the manual above) this function does NOT reseed
the random number generator, in contrary to rand(). Use srand() like suggested above to get correct
IVs.
----
Manual Page -- http://www.php.net/manual/en/function.mcrypt-create-iv.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57873
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57873&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57873&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57873&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57873&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57873&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57873&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57873&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57873&report=yes
Search -- http://master.php.net/manage/user-notes.php