From 41521360f3e414709356cb0d9bacde16e6cc0091 Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Mon, 17 Mar 2014 11:27:09 -0400 Subject: [PATCH] Let there be color. Found and fixed odd math php edge case that affected the dynamic covers. --- module/VuFind/src/VuFind/Cover/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/Cover/Generator.php b/module/VuFind/src/VuFind/Cover/Generator.php index a394af40538..26218486172 100644 --- a/module/VuFind/src/VuFind/Cover/Generator.php +++ b/module/VuFind/src/VuFind/Cover/Generator.php @@ -175,7 +175,7 @@ class Generator protected function createPattern($seed) { // Convert to binary - $bc = decbin((int)$seed%pow(2,32)); + $bc = decbin($seed); // If we have less that a half of a quarter if(strlen($bc) < 8) { // Rotate square of the first 4 into a 4x2 -- GitLab