note 78584 added to function.rand

From: Date: Thu, 18 Oct 2007 08:41:42 +0000
Subject: note 78584 added to function.rand
Groups: php.notes 
Request: Send a blank email to php-notes+get-131485@lists.php.net to get a copy of this message
<? function make_random() { $alpha = "abcdefghijklmopqrstuvwxyz"; $string = str_split($alpha.strtoupper($alpha)."!£$%^&*()#'@;"); $count==1; while ($count<count($string)) { $randomness .= $string[rand(0,count($string))]; $count++; } return $randomness; } ?> Whats the likelihood of that duplicating? ---- Server IP: 194.145.210.4 Probable Submitter: 82.152.68.229 ---- Manual Page -- http://www.php.net/manual/en/function.rand.php Edit -- https://master.php.net/note/edit/78584 Del: integrated -- https://master.php.net/note/delete/78584/integrated Del: useless -- https://master.php.net/note/delete/78584/useless Del: bad code -- https://master.php.net/note/delete/78584/bad+code Del: spam -- https://master.php.net/note/delete/78584/spam Del: non-english -- https://master.php.net/note/delete/78584/non-english Del: in docs -- https://master.php.net/note/delete/78584/in+docs Del: other reasons-- https://master.php.net/note/delete/78584 Reject -- https://master.php.net/note/reject/78584 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131485) next »