Skip Menu |

This queue is for tickets about the Data-Random CPAN distribution.

Report information
The Basics
Id: 100995
Status: open
Priority: 0/
Queue: Data-Random

People
Owner: Nobody in particular
Requestors: jrosenboom [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.11
Fixed in: 0.11_2



Subject: _color in rand_image generates values up to 265
The sub _color in rand_image generates values up to 265 for rgb integers. Values should range from 0 to 255.
Subject: _color.patch
--- Random.pm 2014-12-18 17:35:56.043058225 +0100 +++ Random.pm 2014-12-18 17:35:55.959724871 +0100 @@ -517,7 +517,7 @@ return $image->png(); sub _color { - return [ int( rand(266) ), int( rand(266) ), int( rand(266) ) ]; + return [ int( rand(256) ), int( rand(256) ), int( rand(256) ) ]; } }