note 52335 deleted from function.rand by felipe
| From: | felipe@php.net | Date: | Sun, 30 Dec 2007 18:43:06 +0000 |
| Subject: | note 52335 deleted from function.rand by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134416@lists.php.net to get a copy of this message | ||
Note Submitter: cezden
----
Jawsper,
the problem is that in your method you get not more than
RAND_MAX
'random' strings. (in fact they are not random in the set of all strings of given length)
It's rather poor result when compared with goochivasquez's
strlen($keychars)^$length
number of strings.
In other words - it's little bit less complicated but far, far from achieving the goal.
cezden