Skip to content

Commit

Permalink
lib sodium compat layer fix for PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Jul 18, 2017
1 parent d1519b9 commit 50301ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sodium_compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ public static function crypto_pwhash_str_verify($hash, $password) {
}

public static function randombytes_buf() {
return sodium_randombytes_buf(SODIUM_CRYPTO_SECRETBOX_NONCEBYTES);
return random_bytes(SODIUM_CRYPTO_SECRETBOX_NONCEBYTES);
}
}

0 comments on commit 50301ba

Please sign in to comment.