diff --git a/wire/core/SessionCSRF.php b/wire/core/SessionCSRF.php index ed47be3c..fd91b266 100644 --- a/wire/core/SessionCSRF.php +++ b/wire/core/SessionCSRF.php @@ -70,8 +70,8 @@ class SessionCSRF extends Wire { $tokenValue = $this->session->get($this, $tokenName); if(empty($tokenValue)) { // $tokenValue = md5($this->page->path() . mt_rand() . microtime()) . md5($this->page->name . $this->config->userAuthSalt . mt_rand()); - $pass = $this->wire(new Password()); - $tokenValue = $pass->randomBase64String(32); + $rand = new WireRandom(); + $tokenValue = $rand->base64(32); $this->session->set($this, $tokenName, $tokenValue); } return $tokenValue;