aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
authorAlexander Bluhm <[email protected]>2017-03-27 19:29:55 +0200
committerAlexander Bluhm <[email protected]>2017-03-29 02:58:18 +0200
commit7160abdedc9dce303b7786b54feb08bbe26d7d72 (patch)
tree8ba60ea8bd7d30fa03db5c2f963608718bbad8c3 /src/build-data
parent0a45b6d563c9faf87143334f43abf8afec0335d8 (diff)
Use getentropy(2) as random source.
Gather entropy from system call getentropy(2). This is available since in OpenBSD 5.6 and Solaris 11.3. It can provide up to 256 bytes entropy from the kernel without blocking. As a system call it does not need a file descriptor and works in chroot(2) environments without device nodes.
Diffstat (limited to 'src/build-data')
-rw-r--r--src/build-data/buildh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in
index 1c389fe02..393bcc4fb 100644
--- a/src/build-data/buildh.in
+++ b/src/build-data/buildh.in
@@ -122,7 +122,7 @@
* seriously broken system RNG.
*/
#define BOTAN_ENTROPY_DEFAULT_SOURCES \
- { "rdseed", "rdrand", "darwin_secrandom", "dev_random", \
+ { "rdseed", "rdrand", "darwin_secrandom", "getentropy", "dev_random", \
"win32_cryptoapi", "proc_walk", "system_stats" }