summaryrefslogtreecommitdiff
path: root/inc/PassHash.class.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2013-07-30 18:46:02 +0200
committerMichael Hamann <michael@content-space.de>2013-07-30 18:55:18 +0200
commit483b6238a3599595a678f995b2c7c9e9f07a7ce7 (patch)
tree4f88535a4bc42abc8f667f6a3be8482a213c527e /inc/PassHash.class.php
parent27058a053ea6ffa90fee7aaf26f81ab1109d6df3 (diff)
downloadrpg-483b6238a3599595a678f995b2c7c9e9f07a7ce7.tar.gz
rpg-483b6238a3599595a678f995b2c7c9e9f07a7ce7.tar.bz2
Add truly random numbers and use them in places where randomness matters
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;
}