mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
aur.inc: generate_salt() now uses mt_rand()
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
91cf61fba5
commit
7e3c624a69
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ function save_salt($user_id, $passwd)
|
|||
|
||||
function generate_salt()
|
||||
{
|
||||
return md5(uniqid(rand(), true));
|
||||
return md5(uniqid(mt_rand(), true));
|
||||
}
|
||||
|
||||
function salted_hash($passwd, $salt)
|
||||
|
|
Loading…
Add table
Reference in a new issue