diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-01-28 13:07:28 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-01-28 13:07:28 +0100 |
commit | b89446bb33fbe6b9820efdbea62433657757a03f (patch) | |
tree | b4c738ece8e391c0bfff729bd2094d9634238ed2 /src/shared/util.h | |
parent | 7d5dd5e0cf2f0f2af39d72b1ee65651731bf0129 (diff) |
util: introduce new dev_urandom() call that is like random_bytes() but doesn't fall back to PRNG
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index 1169864c3a..117855de81 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -272,6 +272,7 @@ 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); static inline uint64_t random_u64(void) { |