diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2021-04-08 01:15:17 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2021-06-06 16:26:06 +0200 |
commit | e5724f71d2c054bc51d66092beb6af4da21e0c62 (patch) | |
tree | 210ddf678e7aa8cb503f6fb5b977864861699e2b /lib | |
parent | c48ebde5ce6db3da8cd571d213d1a1f265de8983 (diff) |
sysdep: Add wrapper to get random bytes - update
Simplify the code and fix an issue with getentropy() return value.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/birdlib.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h index 61098f92..fd20ef3a 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -192,8 +192,7 @@ asm( /* Pseudorandom numbers */ u32 random_u32(void); -int random_bytes(char *buf, size_t size); -void random_close(void); void random_init(void); +void random_bytes(void *buf, size_t size); #endif |