note 108800 added to function.rand
| From: | anonymouscoward | Date: | Fri, 25 May 2012 11:00:58 +0000 |
| Subject: | note 108800 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-188221@lists.php.net to get a copy of this message | ||
@Alex Khimch
Random seems pretty random. Your image test is flawed.
Try this to see some noise:
<?php
header("Content-type: image/png");
$img = imagecreatetruecolor(500,500);
$ink = imagecolorallocate($img, 0xAA, 0xAA, 0xAA);
imagefill($img, 0, 0, imagecolorallocate($img, 0x8F, 0x0D, 0x57));
for($i=0;$i<500;$i++) {
for($j=0;$j<500;$j++) {
imagesetpixel($img, rand(1,500), rand(1,500), $ink1);
}
}
imagepng($img);
imagedestroy($img);
----
Server IP: 89.190.194.18
Probable Submitter: 84.40.68.253
----
Manual Page -- http://www.php.net/manual/en/function.rand.php
Edit -- https://master.php.net/note/edit/108800
Del: integrated -- https://master.php.net/note/delete/108800/integrated
Del: useless -- https://master.php.net/note/delete/108800/useless
Del: bad code -- https://master.php.net/note/delete/108800/bad+code
Del: spam -- https://master.php.net/note/delete/108800/spam
Del: non-english -- https://master.php.net/note/delete/108800/non-english
Del: in docs -- https://master.php.net/note/delete/108800/in+docs
Del: other reasons-- https://master.php.net/note/delete/108800
Reject -- https://master.php.net/note/reject/108800
Search -- https://master.php.net/manage/user-notes.php