]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Using random_int directly
[friendica.git] / boot.php
index a94b380387bcb262e50a0826e7ab1fd0821c2731..6373b2c64b4c525753897d9f95e859280492f112 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -673,16 +673,6 @@ function curPageURL()
        return $pageURL;
 }
 
-function random_digits($digits)
-{
-       $rn = '';
-       for ($i = 0; $i < $digits; $i++) {
-               /// @TODO Avoid rand/mt_rand, when it comes to cryptography, they are generating predictable (seedable) numbers.
-               $rn .= rand(0, 9);
-       }
-       return $rn;
-}
-
 function get_server()
 {
        $server = Config::get("system", "directory");