minor fixes, typos
This commit is contained in:
parent
767a995916
commit
1ef28d7a5c
@ -10,7 +10,7 @@
|
|||||||
* @version 0.22
|
* @version 0.22
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin\model;
|
namespace PrivateBin\Model;
|
||||||
|
|
||||||
use PrivateBin\Sjcl;
|
use PrivateBin\Sjcl;
|
||||||
use PrivateBin\Persistence\TrafficLimiter;
|
use PrivateBin\Persistence\TrafficLimiter;
|
||||||
|
@ -49,7 +49,6 @@ class ServerSalt extends AbstractPersistence
|
|||||||
$randomSalt = bin2hex(mcrypt_create_iv(256, MCRYPT_DEV_URANDOM));
|
$randomSalt = bin2hex(mcrypt_create_iv(256, MCRYPT_DEV_URANDOM));
|
||||||
} else {
|
} else {
|
||||||
// fallback to mt_rand()
|
// fallback to mt_rand()
|
||||||
|
|
||||||
for ($i = 0; $i < 256; ++$i) {
|
for ($i = 0; $i < 256; ++$i) {
|
||||||
$randomSalt .= base_convert(mt_rand(), 10, 16);
|
$randomSalt .= base_convert(mt_rand(), 10, 16);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user