diff --git a/Tests/Data/MutateTest.php b/Tests/Data/MutateTest.php index 3b69588a89..8fec1f1067 100644 --- a/Tests/Data/MutateTest.php +++ b/Tests/Data/MutateTest.php @@ -11,7 +11,7 @@ public function testMutation() $remoteuser = new \Idno\Entities\RemoteUser(); $remoteuser->handle = 'Test Mutation User'; $remoteuser->email = 'hello@withknown.com'; - $remoteuser->setPassword(md5(rand())); // Set password to something random to mitigate security holes if cleanup fails + $remoteuser->setPassword(md5(openssl_random_pseudo_bytes(16))); // Set password to something random to mitigate security holes if cleanup fails $remoteuser->setTitle('Test Mutation'); $id = $remoteuser->save(true);