]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Register.php
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone
[friendica.git] / src / Model / Register.php
index 8a03f379a604daca027233e31b8503d8a7fee0b0..9f6d369744ec054d06da232f0becc373dc4b38d7 100644 (file)
@@ -3,6 +3,7 @@
 /**
  * @file src/Model/Register.php
  */
+
 namespace Friendica\Model;
 
 use Friendica\Database\DBA;
@@ -83,7 +84,7 @@ class Register
         */
        public static function createForInvitation()
        {
-               $code = Strings::getRandomName(8) . srand(1000, 9999);
+               $code = Strings::getRandomName(8) . random_int(1000, 9999);
 
                $fields = [
                        'hash' => $code,