note 104729 deleted from function.rand by danbrown

From: Date: Tue, 05 Jul 2011 13:41:58 +0000
Subject: note 104729 deleted from function.rand by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181247@lists.php.net to get a copy of this message
Note Submitter: Jacky ---- 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.

« previous php.notes (#181247) next »