diff --git a/inc/mod/auth.php b/inc/mod/auth.php
--- a/inc/mod/auth.php
+++ b/inc/mod/auth.php
@@ -70,7 +70,7 @@ function test_password($password, $salt, $test) {
function generate_salt() {
// 128 bits of entropy
- return strtr(base64_encode(mcrypt_create_iv(16, MCRYPT_DEV_URANDOM)), '+', '.');
+ return strtr(base64_encode(random_bytes(16)), '+', '.');
}