git.iko.soy/typeable/entropy
on main help sign in
Rename CPP for clarity
commitc68af8365fb221f6034de313f0ec99ecc073261d authorThomas M. DuBuisson <thomas.dubuisson@gmail.com> dateSun 21 Aug 2022, 19:03 (4 years ago) parentac89440
2 files changed+3−3
cbits/random_initialized.c+2−2 entropy.cabal+1−1
cbits/random_initialized.c+2−2
@@ -6,7 +6,7 @@
66#include <unistd.h>
77
88#ifdef HAVE_GETENTROPY
9−#ifndef !DO_NOT_GET_ENTROPY
9+#ifndef !DO_NOT_USE_GET_ENTROPY
1010static int ensure_pool_initialized_getentropy()
1111{
1212 char tmp;
@@ -48,7 +48,7 @@ static int ensure_pool_initialized_poll()
4848int ensure_pool_initialized()
4949{
5050#ifdef HAVE_GETENTROPY
51−#ifndef !DO_NOT_GET_ENTROPY
51+#ifndef !DO_NOT_USE_GET_ENTROPY
5252 if (ensure_pool_initialized_getentropy() == 0)
5353 return 0;
5454#endif
entropy.cabal+1−1
@@ -79,7 +79,7 @@ library
7979 c-sources: cbits/getrandom.c cbits/random_initialized.c
8080 }
8181 if flag(DoNotGetEntropy) {
82− cc-options: -DDO_NOT_GET_ENTROPY
82+ cc-options: -DDO_NOT_USE_GET_ENTROPY
8383 }
8484
8585