diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-28 23:32:09 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-28 23:32:09 +0100 |
commit | f59be39cc5c82b05e2bf836eefa2cd7974d4e6a5 (patch) | |
tree | 388876bb40a6f4add38b878fff7c109f58784ecf /FICS/adminproc.c | |
parent | 0ae6a4a14a3500efe2fd7a1ebbf11e2bc45ae09f (diff) |
Switched to usage of arc4random
Diffstat (limited to 'FICS/adminproc.c')
-rw-r--r-- | FICS/adminproc.c | 2 |
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()); |