summaryrefslogtreecommitdiff
path: root/inc/PassHash.class.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-07-31 11:07:32 -0700
committerAndreas Gohr <andi@splitbrain.org>2013-07-31 11:07:32 -0700
commit96e3411f2e5895f9aa3eff5db58f0ed3e6183471 (patch)
treeb55b5905c1a10e97519bf7768f48fcdb2e7e2503 /inc/PassHash.class.php
parent07ff0babae240ba072a3bc8b83a989c4305c24cd (diff)
parent7b650cef79bb603087a8ef43b22a1f7c3d86b7ef (diff)
downloadrpg-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.php2
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;
}