srand() is for seeding the PRNG. You want rand() here.
This commit is contained in:
parent
ca55bbdaed
commit
5217d89543
@ -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') ",
|
||||
|
Reference in New Issue
Block a user