missing evutil_secure_rng_add_bytes()
CC src/common/compat_libevent.o
src/common/compat_libevent.c:234:3: error: implicit declaration of function
'evutil_secure_rng_add_bytes' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
evutil_secure_rng_add_bytes(buf, 32);
^
src/common/compat_libevent.c:234:3: note: did you mean
'evutil_secure_rng_get_bytes'?
/tmp/include/event2/util.h:808:6: note: 'evutil_secure_rng_get_bytes' declared
here
void evutil_secure_rng_get_bytes(void *buf, size_t n);
^
src/common/compat_libevent.c:234:3: error: this function declaration is not a
prototype [-Werror,-Wstrict-prototypes]
evutil_secure_rng_add_bytes(buf, 32);
^
2 errors generated.
Makefile:4834: recipe for target 'src/common/compat_libevent.o' failed
as of libevent git commit 6541168d7037457b8e5c51cc354f11bd94e618b6, the function evutil_secure_rng_add_bytes() is only exposed for platforms with arc4random_addrandom().
issue