Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dba618a

Browse files
Use uniqid()
1 parent e599ecf commit dba618a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/RedisTest.php

+1-7
Original file line numberDiff line numberDiff line change
@@ -5466,13 +5466,7 @@ private function generateSessionId()
54665466
} else if (function_exists('openssl_random_pseudo_bytes')) {
54675467
return bin2hex(openssl_random_pseudo_bytes(8));
54685468
} 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;
5469+
return uniqid();
54765470
}
54775471
}
54785472

0 commit comments

Comments
 (0)