chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
basic/random-util: do not fall back to /dev/urandom if getrandom() returns short
[elogind.git]
/
src
/
basic
/
random-util.h
diff --git
a/src/basic/random-util.h
b/src/basic/random-util.h
index 3cee4c501408e5143a485f4c095497d6a3e3b0b0..804e225fc1ecee76c7c071c493dfd9db371f27bb 100644
(file)
--- a/
src/basic/random-util.h
+++ b/
src/basic/random-util.h
@@
-19,10
+19,12
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stddef.h>
#include <stdint.h>
-int dev_urandom(void *p, size_t n);
+int acquire_random_bytes(void *p, size_t n, bool high_quality_required);
+void pseudorandom_bytes(void *p, size_t n);
void random_bytes(void *p, size_t n);
void initialize_srand(void);
void random_bytes(void *p, size_t n);
void initialize_srand(void);