1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

sysdep: Add wrapper to get random bytes - update

Simplify the code and fix an issue with getentropy() return value.
This commit is contained in:
Ondrej Zajicek (work)
2021-04-08 01:15:17 +02:00
parent c48ebde5ce
commit e5724f71d2
4 changed files with 53 additions and 70 deletions

View File

@@ -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