diff options
author | Malf Furious <m@lfurio.us> | 2015-12-18 15:07:41 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2015-12-18 15:07:41 -0500 |
commit | 00de072a6a90259d20426969ff4d84b2e26959ee (patch) | |
tree | a0fe8c0d8bab09e0896997140bcd1bfd246fd784 /app/class | |
parent | 877eccf539bfd3a365d8658ed63d096a13e57b00 (diff) | |
download | scrott-00de072a6a90259d20426969ff4d84b2e26959ee.tar.gz scrott-00de072a6a90259d20426969ff4d84b2e26959ee.zip |
* now using rand() instead of random_bytes for numbers
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/object.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |