note 116018 added to function.mt-rand

From: Date: Thu, 30 Oct 2014 08:19:30 +0000
Subject: note 116018 added to function.mt-rand
Groups: php.notes 
Request: Send a blank email to php-notes+get-200746@lists.php.net to get a copy of this message
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. ---- Server IP: 72.52.91.14 Probable Submitter: 88.79.121.88 ---- Manual Page -- http://php.net/manual/en/function.mt-rand.php Edit -- https://master.php.net/note/edit/116018 Del: integrated -- https://master.php.net/note/delete/116018/integrated Del: useless -- https://master.php.net/note/delete/116018/useless Del: bad code -- https://master.php.net/note/delete/116018/bad+code Del: spam -- https://master.php.net/note/delete/116018/spam Del: non-english -- https://master.php.net/note/delete/116018/non-english Del: in docs -- https://master.php.net/note/delete/116018/in+docs Del: other reasons-- https://master.php.net/note/delete/116018 Reject -- https://master.php.net/note/reject/116018 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200746) next »