Xinqi Bao's Git

entropy: Port to OpenBSD
authorAaron Marcher <[email protected]>
Sun, 6 May 2018 20:54:32 +0000 (22:54 +0200)
committerAaron Marcher <[email protected]>
Sun, 6 May 2018 20:54:32 +0000 (22:54 +0200)
OpenBSD's entropy design is superior to Linux.

README
components/entropy.c

diff --git a/README b/README
index 5c63c2c..889a3b4 100644 (file)
--- a/README
+++ b/README
@@ -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
index 2baa8aa..1450b31 100644 (file)
@@ -14,5 +14,9 @@
                       bprintf("%d", num) : NULL;
        }
 #elif defined(__OpenBSD__)
-       /* unimplemented */
+       const char *
+       entropy(void)
+       {
+               return "∞";
+       }
 #endif