From 7e3c624a698406fc34edf75e0914ca3723d345cc Mon Sep 17 00:00:00 2001 From: Linas Date: Wed, 16 Jun 2010 17:11:10 -0400 Subject: aur.inc: generate_salt() now uses mt_rand() Signed-off-by: Loui Chang --- web/lib/aur.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/lib/aur.inc b/web/lib/aur.inc index 8ccce89..37f18f8 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) -- cgit v1.2.3-70-g09d2