diff options
author | Linas <linas_fi@ymail.com> | 2010-06-16 23:11:10 +0200 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2010-06-16 23:11:10 +0200 |
commit | 7e3c624a698406fc34edf75e0914ca3723d345cc (patch) | |
tree | 3f6b1f8edac11410f94b84d82e4e40e455025c9d /web/lib | |
parent | 91cf61fba5fc90c39a60bf3088c8cef98d59022d (diff) | |
download | aur-7e3c624a698406fc34edf75e0914ca3723d345cc.tar.gz aur-7e3c624a698406fc34edf75e0914ca3723d345cc.tar.xz |
aur.inc: generate_salt() now uses mt_rand()
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/aur.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc index 8ccce897..37f18f81 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -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) |