aboutsummaryrefslogtreecommitdiff
path: root/slstatus/components/entropy.c
diff options
context:
space:
mode:
authorMarvin Borner2020-03-16 23:33:42 +0100
committerMarvin Borner2020-03-16 23:33:42 +0100
commit0e9ddbb0bf0cd34500155ea4b03de2e2a38d8ab2 (patch)
tree719da1c7fe5dabb872fe9ff1582c39b55ccd488e /slstatus/components/entropy.c
parente5d38956336ab1be954bdbd12808c5f98f8bd925 (diff)
Well I'm using Arch again
Diffstat (limited to 'slstatus/components/entropy.c')
-rw-r--r--slstatus/components/entropy.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/slstatus/components/entropy.c b/slstatus/components/entropy.c
deleted file mode 100644
index 2a485de..0000000
--- a/slstatus/components/entropy.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-#if defined(__linux__)
- #include <stdint.h>
- #include <stdio.h>
-
- #include "../util.h"
-
- const char *
- entropy(void)
- {
- uintmax_t num;
-
- if (pscanf("/proc/sys/kernel/random/entropy_avail", "%ju", &num)
- != 1) {
- return NULL;
- }
-
- return bprintf("%ju", num);
- }
-#elif defined(__OpenBSD__) | defined(__FreeBSD__)
- const char *
- entropy(void)
- {
- /* Unicode Character 'INFINITY' (U+221E) */
- return "\xe2\x88\x9e";
- }
-#endif