note 104729 added to function.rand

From: Date: Mon, 04 Jul 2011 08:31:34 +0000
Subject: note 104729 added to function.rand
Groups: php.notes 
Request: Send a blank email to php-notes+get-181216@lists.php.net to get a copy of this message
RE:Alex Khimch alex at khim dot removeit dot ich dot org There is a bug in the comment code. Replace ($ink1) <?PHP imagesetpixel($img, rand(1,500), rand(1,500), $ink1); ?> with ($ink) <?PHP imagesetpixel($img, rand(1,500), rand(1,500), $ink); ?> Using mt_rand() here will produce an image with a lot of noise. ---- Server IP: 69.147.83.197 Probable Submitter: 129.143.96.30 ---- Manual Page -- http://www.php.net/manual/en/function.rand.php Edit -- https://master.php.net/note/edit/104729 Del: integrated -- https://master.php.net/note/delete/104729/integrated Del: useless -- https://master.php.net/note/delete/104729/useless Del: bad code -- https://master.php.net/note/delete/104729/bad+code Del: spam -- https://master.php.net/note/delete/104729/spam Del: non-english -- https://master.php.net/note/delete/104729/non-english Del: in docs -- https://master.php.net/note/delete/104729/in+docs Del: other reasons-- https://master.php.net/note/delete/104729 Reject -- https://master.php.net/note/reject/104729 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181216) next »