diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-07-31 11:07:32 -0700 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-07-31 11:07:32 -0700 |
commit | 96e3411f2e5895f9aa3eff5db58f0ed3e6183471 (patch) | |
tree | b55b5905c1a10e97519bf7768f48fcdb2e7e2503 /inc/PassHash.class.php | |
parent | 07ff0babae240ba072a3bc8b83a989c4305c24cd (diff) | |
parent | 7b650cef79bb603087a8ef43b22a1f7c3d86b7ef (diff) | |
download | rpg-96e3411f2e5895f9aa3eff5db58f0ed3e6183471.tar.gz rpg-96e3411f2e5895f9aa3eff5db58f0ed3e6183471.tar.bz2 |
Merge pull request #242 from splitbrain/aes_prng
Add AES encryption and better random numbers FS#2685
Diffstat (limited to 'inc/PassHash.class.php')
-rw-r--r-- | inc/PassHash.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/PassHash.class.php b/inc/PassHash.class.php index 61bd74939..607661a22 100644 --- a/inc/PassHash.class.php +++ b/inc/PassHash.class.php @@ -98,7 +98,7 @@ class PassHash { $salt = ''; $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; for($i = 0; $i < $len; $i++) { - $salt .= $chars[mt_rand(0, 61)]; + $salt .= $chars[auth_random(0, 61)]; } return $salt; } |