@@ -1,6 +1,6 @@
1name: entropy
1name: entropy
3−version: 0.4.1.7
3+version: 0.4.1.8
4description: A mostly platform independent method to obtain cryptographically strong entropy
4description: A mostly platform independent method to obtain cryptographically strong entropy
5 (RDRAND, urandom, CryptAPI, and patches welcome)
5 (RDRAND, urandom, CryptAPI, and patches welcome)
6 Users looking for cryptographically strong (number-theoretically
6 Users looking for cryptographically strong (number-theoretically
@@ -24,6 +24,12 @@ tested-with: GHC == 8.2.2
24-- data-files:
24-- data-files:
25extra-source-files: ./cbits/getrandom.c ./cbits/random_initialized.c ./cbits/rdrand.c, ./cbits/rdrand.h, README.md
25extra-source-files: ./cbits/getrandom.c ./cbits/random_initialized.c ./cbits/rdrand.c, ./cbits/rdrand.h, README.md
28+ Description: Avoid use of the getentropy() *nix function. By default getentropy will be used
29+ if detected during compilation (this plays poorly with cross compilation).
27custom-setup
33custom-setup
28 setup-depends: Cabal >= 1.10 && < 3.7
34 setup-depends: Cabal >= 1.10 && < 3.7
29 , base < 5
35 , base < 5
@@ -72,6 +78,9 @@ library
72 Build-Depends: unix
78 Build-Depends: unix
73 c-sources: cbits/getrandom.c cbits/random_initialized.c
79 c-sources: cbits/getrandom.c cbits/random_initialized.c
81+ if flag(DoNotGetEntropy) {
82+ cc-options: -DDO_NOT_USE_GET_ENTROPY
77source-repository head
86source-repository head