dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Improve error handling for wrong autoloader permissions"
[lhc/web/wiklou.git]
/
includes
/
password
/
BcryptPassword.php
diff --git
a/includes/password/BcryptPassword.php
b/includes/password/BcryptPassword.php
index
f811e3f
..
4ba34ef
100644
(file)
--- a/
includes/password/BcryptPassword.php
+++ b/
includes/password/BcryptPassword.php
@@
-65,7
+65,7
@@
class BcryptPassword extends ParameterizedPassword {
// Replace + with ., because bcrypt uses a non-MIME base64 format
strtr(
// Random base64 encoded string
- base64_encode(
MWCryptRand::generate( 16, true
) ),
+ base64_encode(
random_bytes( 16
) ),
'+', '.'
),
0, 22