From 5217d89543912aec870f27282b99d8e5e7920c57 Mon Sep 17 00:00:00 2001 From: ken restivo Date: Thu, 3 Dec 2015 18:21:25 -0800 Subject: srand() is for seeding the PRNG. You want rand() here. --- mod/invite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/invite.php b/mod/invite.php index bda808142..1af5fc1f8 100644 --- a/mod/invite.php +++ b/mod/invite.php @@ -51,7 +51,7 @@ function invite_post(&$a) { } if($invonly && ($x || is_site_admin())) { - $code = autoname(8) . srand(1000,9999); + $code = autoname(8) . rand(1000,9999); $nmessage = str_replace('$invite_code',$code,$message); $r = q("INSERT INTO `register` (`hash`,`created`) VALUES ('%s', '%s') ", -- cgit v1.2.3