From fd14804d6ffb212bb88bb5560508e38b6cf432fd Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Sun, 6 May 2018 22:54:32 +0200 Subject: entropy: Port to OpenBSD OpenBSD's entropy design is superior to Linux. --- components/entropy.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'components/entropy.c') diff --git a/components/entropy.c b/components/entropy.c index 2baa8aa..1450b31 100644 --- a/components/entropy.c +++ b/components/entropy.c @@ -14,5 +14,9 @@ bprintf("%d", num) : NULL; } #elif defined(__OpenBSD__) - /* unimplemented */ + const char * + entropy(void) + { + return "∞"; + } #endif -- cgit v1.2.3