diff options
author | default <nobody@localhost> | 2023-04-16 20:27:38 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-04-16 20:27:38 +0200 |
commit | 3ccf4e3759684e9809ad80c2f2639ec5f069beff (patch) | |
tree | 540cd5bdb3e578f208f8d0efef3eaaae211057ea /mastoapi.c | |
parent | f658f345cac7b24d6fa61f08b4ec09823d28b11a (diff) |
arc4random() does not exist in not-so-old systems, so revert this.
Revert "Replaced random() with arc4random()."
This reverts commit f658f345cac7b24d6fa61f08b4ec09823d28b11a.
Diffstat (limited to 'mastoapi.c')
-rw-r--r-- | mastoapi.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -21,10 +21,10 @@ static xs_str *random_str(void) fclose(f); } else { - data[0] = arc4random(); - data[1] = arc4random(); - data[2] = arc4random(); - data[3] = arc4random(); + data[0] = random() % 0xffffffff; + data[1] = random() % 0xffffffff; + data[2] = random() % 0xffffffff; + data[3] = random() % 0xffffffff; } return xs_hex_enc((char *)data, sizeof(data)); |