aboutsummaryrefslogtreecommitdiffstats
path: root/core/functions.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-12 02:08:12 +0200
committerThomas Lange <code@nerdmind.de>2021-06-12 02:08:12 +0200
commitdfc32b1b8b7d1686d8c8c4fa55a2eb413abfbe9a (patch)
tree5618c9266892034c6afb35303033c2a3abb4bc75 /core/functions.php
parentf5ce181aa89d295e108bd25cb7c6914cf020d565 (diff)
downloadblog-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/functions.php')
-rw-r--r--core/functions.php7
1 files changed, 0 insertions, 7 deletions
diff --git a/core/functions.php b/core/functions.php
index ef2814a..517be51 100644
--- a/core/functions.php
+++ b/core/functions.php
@@ -234,13 +234,6 @@ function removeWhitespace($string): string {
}
#===============================================================================
-# Return pseudo-random (hex converted) string
-#===============================================================================
-function getRandomValue($length = 40): string {
- return strtoupper(bin2hex(random_bytes(ceil($length / 2))));
-}
-
-#===============================================================================
# Return truncated string
#===============================================================================
function truncate($string, $length, $replace = '') {