fix random function name

darcs-hash:20080829021854-84dde-818492a31c07dd0921c2a693095ca7ac901b6d35.gz
This commit is contained in:
Evan Prodromou 2008-08-28 22:18:54 -04:00
parent 54bee1b999
commit 1df845db78

View File

@ -1481,7 +1481,7 @@ function common_canonical_sms($sms) {
function common_session_token() { function common_session_token() {
common_ensure_session(); common_ensure_session();
if (!array_key_exists('token', $_SESSION)) { if (!array_key_exists('token', $_SESSION)) {
$_SESSION['token'] = common_random_bytes(64); $_SESSION['token'] = common_good_rand(64);
} }
return $_SESSION['token']; return $_SESSION['token'];
} }