Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
use original rand() ensuring on purpose check
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
samsonasik committed Nov 2, 2024
1 parent d5a54d6 commit 3d3398a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Http/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
use function explode;
use function implode;
use function md5;
use function mt_getrandmax;
use function preg_match;
use function random_int;
use function rand;
use function rawurldecode;
use function rawurlencode;
use function str_replace;
Expand Down Expand Up @@ -180,7 +179,7 @@ public function parseQueryString($query)
*/
public function generateNonce()
{
return md5(uniqid(random_int(0, mt_getrandmax()), true));
return md5(uniqid(rand(), true));
}

/**
Expand Down

0 comments on commit 3d3398a

Please sign in to comment.