diff options
author | Ronny Chevalier <chevalier.ronny@gmail.com> | 2015-04-10 22:27:10 +0200 |
---|---|---|
committer | Ronny Chevalier <chevalier.ronny@gmail.com> | 2015-04-11 00:11:13 +0200 |
commit | 3df3e884ae1237ef0d4d23b0e80f4ffda95ac135 (patch) | |
tree | 630cb996d0cf23429633e4900826aac56d9271ad /src/shared/util.h | |
parent | 0b452006de98294d1690f045f6ea2f7f6630ec3b (diff) |
shared: add random-util.[ch]
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index b939d7f67e..4d5162f4ca 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -283,22 +283,6 @@ int make_stdio(int fd); int make_null_stdio(void); int make_console_stdio(void); -int dev_urandom(void *p, size_t n); -void random_bytes(void *p, size_t n); -void initialize_srand(void); - -static inline uint64_t random_u64(void) { - uint64_t u; - random_bytes(&u, sizeof(u)); - return u; -} - -static inline uint32_t random_u32(void) { - uint32_t u; - random_bytes(&u, sizeof(u)); - return u; -} - /* For basic lookup tables with strictly enumerated entries */ #define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name,type,scope) \ scope const char *name##_to_string(type i) { \ |