From 3ccf4e3759684e9809ad80c2f2639ec5f069beff Mon Sep 17 00:00:00 2001 From: default Date: Sun, 16 Apr 2023 20:27:38 +0200 Subject: arc4random() does not exist in not-so-old systems, so revert this. Revert "Replaced random() with arc4random()." This reverts commit f658f345cac7b24d6fa61f08b4ec09823d28b11a. --- snac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'snac.c') diff --git a/snac.c b/snac.c index f818dd8..a5b2080 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", arc4random()); + d_nonce = xs_fmt("%08x", random()); nonce = d_nonce; } -- cgit v1.2.3