From f577760fb6b06259cbfb8c65f6b1c59132fb60dd Mon Sep 17 00:00:00 2001 From: Ben Werdmuller Date: Sat, 16 Oct 2021 12:16:01 -0400 Subject: [PATCH] Minor improvement to test password generation (#3005) --- Tests/Data/MutateTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);