Commit ff8b0618 authored by Dries's avatar Dries

- Patch #503496 by deekayen, boombatower, Dave Reid: better sid generation in...

- Patch #503496 by deekayen, boombatower, Dave Reid: better sid generation in tests to help us make progress on PIFR 2.x
parent 12d6d666
......@@ -1016,7 +1016,7 @@ class UserBlocksUnitTests extends DrupalWebTestCase {
private function insertSession(array $fields = array()) {
$fields += array(
'uid' => 0,
'sid' => md5(microtime()),
'sid' => md5(uniqid(mt_rand(), TRUE)),
'timestamp' => REQUEST_TIME,
);
db_insert('sessions')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment