We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e599ecf commit dba618aCopy full SHA for dba618a
tests/RedisTest.php
@@ -5466,13 +5466,7 @@ private function generateSessionId()
5466
} else if (function_exists('openssl_random_pseudo_bytes')) {
5467
return bin2hex(openssl_random_pseudo_bytes(8));
5468
} else {
5469
- /* Not cryptographically secure, but it doesn't need to be
5470
- * for the test. We just want an ID */
5471
- $encoded = '';
5472
- for ($c = 0; $c < 8; $c++) {
5473
- $encoded .= chr(rand(65, 90));
5474
- }
5475
- return $encoded;
+ return uniqid();
5476
}
5477
5478
0 commit comments