diff options
author | Aaron Marcher <me@drkhsh.at> | 2018-05-06 22:54:32 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-05-06 22:54:32 +0200 |
commit | fd14804d6ffb212bb88bb5560508e38b6cf432fd (patch) | |
tree | 30db27471db8515ac6b27047ed53a9565164c9d6 | |
parent | 62563a5a0d133fac43d81f85b50d6da01eb93283 (diff) |
entropy: Port to OpenBSD
OpenBSD's entropy design is superior to Linux.
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | components/entropy.c | 6 |
2 files changed, 5 insertions, 2 deletions
@@ -61,4 +61,3 @@ Porting to OpenBSD is the current goal before thinking about a release. The following functions are not portable at the moment: - wifi_{perc,essid} -- entropy 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 |