diff options
author | Thomas Lange <code@nerdmind.de> | 2021-06-12 02:08:12 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-06-12 02:08:12 +0200 |
commit | dfc32b1b8b7d1686d8c8c4fa55a2eb413abfbe9a (patch) | |
tree | 5618c9266892034c6afb35303033c2a3abb4bc75 /core/namespace/Application.php | |
parent | f5ce181aa89d295e108bd25cb7c6914cf020d565 (diff) | |
download | blog-dfc32b1b8b7d1686d8c8c4fa55a2eb413abfbe9a.tar.gz blog-dfc32b1b8b7d1686d8c8c4fa55a2eb413abfbe9a.tar.xz blog-dfc32b1b8b7d1686d8c8c4fa55a2eb413abfbe9a.zip |
Remove function "getRandomValue"
This commit removes the "getRandomValue" function. In addition, the
Application class now calls PHPs "random_bytes" function directly.
Diffstat (limited to 'core/namespace/Application.php')
-rw-r--r-- | core/namespace/Application.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/namespace/Application.php b/core/namespace/Application.php index 64e562d..6a77865 100644 --- a/core/namespace/Application.php +++ b/core/namespace/Application.php @@ -72,7 +72,7 @@ class Application { #=============================================================================== public static function getSecurityToken(): string { if(!isset($_SESSION['token'])) { - $_SESSION['token'] = getRandomValue(); + $_SESSION['token'] = bin2hex(random_bytes(16)); } return $_SESSION['token']; |