aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/adminproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/adminproc.c')
-rw-r--r--FICS/adminproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/adminproc.c b/FICS/adminproc.c
index 6f10d94..0b47134 100644
--- a/FICS/adminproc.c
+++ b/FICS/adminproc.c
@@ -978,7 +978,7 @@ com_addplayer(int p, param_list param)
if (strcmp(newemail, "none")) {
for (i = 0; i < PASSLEN; i++)
- password[i] = ('a' + rand() % 26);
+ password[i] = ('a' + arc4random_uniform(26));
password[i] = '\0';
strcpy(salt, fics_getsalt());