projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62563a5
)
entropy: Port to OpenBSD
author
Aaron Marcher
<me@drkhsh.at>
Sun, 6 May 2018 20:54:32 +0000
(22:54 +0200)
committer
Aaron Marcher
<me@drkhsh.at>
Sun, 6 May 2018 20:54:32 +0000
(22:54 +0200)
OpenBSD's entropy design is superior to Linux.
README
patch
|
blob
|
history
components/entropy.c
patch
|
blob
|
history
diff --git
a/README
b/README
index 5c63c2cf401a4a08912640785a052fb7d46cfd13..889a3b402ffed1341df2f79b1272f374d1fb9e26 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
diff --git
a/components/entropy.c
b/components/entropy.c
index 2baa8aabce66721693e984f0f1348cf2959583df..1450b31428adcb206463f6aaa05446b4c598d043 100644
(file)
--- 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