aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorken restivo <ken@restivo.org>2015-12-03 18:21:25 -0800
committerken restivo <ken@restivo.org>2015-12-03 18:21:25 -0800
commit5217d89543912aec870f27282b99d8e5e7920c57 (patch)
treef952ff4f7bdaff333e907d6e040a67ab48ef026b
parentca55bbdaed8c361fe9203c9823b67dd91f3b7741 (diff)
downloadvolse-hubzilla-5217d89543912aec870f27282b99d8e5e7920c57.tar.gz
volse-hubzilla-5217d89543912aec870f27282b99d8e5e7920c57.tar.bz2
volse-hubzilla-5217d89543912aec870f27282b99d8e5e7920c57.zip
srand() is for seeding the PRNG. You want rand() here.
-rw-r--r--mod/invite.php2
1 files changed, 1 insertions, 1 deletions
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') ",