summaryrefslogtreecommitdiff
path: root/snac.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-16 20:19:25 +0200
committerdefault <nobody@localhost>2023-04-16 20:19:25 +0200
commitf658f345cac7b24d6fa61f08b4ec09823d28b11a (patch)
treebf24a9a43ff15e907e131fc78516b3bf03d3a913 /snac.c
parent8205159f8ca98f525d892c02eb7dadfdf6d446d4 (diff)
Replaced random() with arc4random().
Diffstat (limited to 'snac.c')
-rw-r--r--snac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/snac.c b/snac.c
index a5b2080..f818dd8 100644
--- a/snac.c
+++ b/snac.c
@@ -123,7 +123,7 @@ d_char *hash_password(const char *uid, const char *passwd, const char *nonce)
xs *hash;
if (nonce == NULL) {
- d_nonce = xs_fmt("%08x", random());
+ d_nonce = xs_fmt("%08x", arc4random());
nonce = d_nonce;
}