aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/fics_addplayer.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-28 23:32:09 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-28 23:32:09 +0100
commitf59be39cc5c82b05e2bf836eefa2cd7974d4e6a5 (patch)
tree388876bb40a6f4add38b878fff7c109f58784ecf /FICS/fics_addplayer.c
parent0ae6a4a14a3500efe2fd7a1ebbf11e2bc45ae09f (diff)
Switched to usage of arc4random
Diffstat (limited to 'FICS/fics_addplayer.c')
-rw-r--r--FICS/fics_addplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/fics_addplayer.c b/FICS/fics_addplayer.c
index 2c9518d..8f01604 100644
--- a/FICS/fics_addplayer.c
+++ b/FICS/fics_addplayer.c
@@ -113,7 +113,7 @@ main(int argc, char *argv[])
parray[p].emailAddress = xstrdup(email);
for (i = 0; i < PASSLEN; i++)
- password[i] = ('a' + rand() % 26);
+ password[i] = ('a' + arc4random_uniform(26));
password[i] = '\0';
strcpy(salt, fics_getsalt());