note 116018 deleted from function.mt-rand by salathe
| From: | salathe@php.net | Date: | Fri, 07 Nov 2014 11:01:49 +0000 |
| Subject: | note 116018 deleted from function.mt-rand by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-200814@lists.php.net to get a copy of this message | ||
Note Submitter: dcmcdxliii at ftb-net dot de
----
The hex example by pHp_n00b is wrong.
It only calculates random values of the ranger 0x100000 .. 0xffffff, because results < 0x100000
produces strings with less than 6 chars and triggers an new (recursive) calculation.