Closed yurivict closed 3 months ago
This patch solves it:
--- src/random.c.orig 2022-11-25 01:30:10 UTC
+++ src/random.c
@@ -6,7 +6,7 @@
ssize_t
axel_rand64(uint64_t *out)
{
- static int fd = -1;
+ static atomic_int fd = -1;
if (fd == -1) {
int tmp = open("/dev/random", O_RDONLY);
int expect = -1;
@yurivict Thanks so much for diagnosing the problem and providing a patch! I used your patch in https://github.com/conda-forge/axel-feedstock/pull/3 to build a conda binary for axel for macOS
From the manpage:
clang-14 FreeBSD 13.1