From 00de072a6a90259d20426969ff4d84b2e26959ee Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Fri, 18 Dec 2015 15:07:41 -0500 Subject: * now using rand() instead of random_bytes for numbers --- app/class/object.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/class') diff --git a/app/class/object.class.php b/app/class/object.class.php index 7a46e6e..bae57ea 100644 --- a/app/class/object.class.php +++ b/app/class/object.class.php @@ -200,7 +200,7 @@ abstract class Object extends Framework { do { - $sha = hash("sha256", random_bytes(64)); + $sha = hash("sha256", rand()); $guid = substr($sha, 0, 8); } while ($this->isGUID($guid)); -- cgit v1.2.3