diff options
author | michael-grunder <michael.grunder@gmail.com> | 2018-04-10 16:40:42 +0300 |
---|---|---|
committer | Michael Grunder <michael.grunder@gmail.com> | 2018-04-10 22:06:36 +0300 |
commit | dba618a1e06ad2a99463631cbad5911b9fb410da (patch) | |
tree | a89733aa8179d7d09d834d556146c9f8c4a3218c /tests | |
parent | e599ecf186e5acbc5c7e479f2a51abfc1440925d (diff) |
Use uniqid()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/RedisTest.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/RedisTest.php b/tests/RedisTest.php index c7aa3454..45d2c1ef 100644 --- a/tests/RedisTest.php +++ b/tests/RedisTest.php @@ -5466,13 +5466,7 @@ class Redis_Test extends TestSuite } else if (function_exists('openssl_random_pseudo_bytes')) { return bin2hex(openssl_random_pseudo_bytes(8)); } else { - /* Not cryptographically secure, but it doesn't need to be - * for the test. We just want an ID */ - $encoded = ''; - for ($c = 0; $c < 8; $c++) { - $encoded .= chr(rand(65, 90)); - } - return $encoded; + return uniqid(); } } |