@@ -1,9 +1,9 @@
1name: entropy
1name: entropy
2−version: 0.3
2+version: 0.3.1
3description: A platform independent method to obtain cryptographically strong entropy
3description: A platform independent method to obtain cryptographically strong entropy
4− (urandom on Linux, CryptAPI on Windows, patches welcome).
4+ (RDRAND when available anywhere, urandom on nix, CryptAPI on Windows, patches welcome).
5 Users looking for cryptographically strong (number-theoretically
5 Users looking for cryptographically strong (number-theoretically
6− sound) PRNGs should see the 'DRBG' package too!
6+ sound) PRNGs should see the 'DRBG' package too.
7synopsis: A platform independent entropy source
7synopsis: A platform independent entropy source
8license: BSD3
8license: BSD3
9license-file: LICENSE
9license-file: LICENSE
@@ -19,7 +19,7 @@ stability: stable
19build-type: Custom
19build-type: Custom
20-- ^^ Test for RDRAND support using 'ghc'
20-- ^^ Test for RDRAND support using 'ghc'
21cabal-version: >=1.10
21cabal-version: >=1.10
22−tested-with: GHC == 7.6.3
22+tested-with: GHC == 7.8.2
23-- data-files:
23-- data-files:
24extra-source-files: ./cbits/rdrand.c, ./cbits/rdrand.h, README.md
24extra-source-files: ./cbits/rdrand.c, ./cbits/rdrand.h, README.md
@@ -29,6 +29,7 @@ extra-source-files: ./cbits/rdrand.c, ./cbits/rdrand.h, README.md
30 description: Build for the HaLVM
30 description: Build for the HaLVM
31 default: False
31 default: False
33 ghc-options: -O2
34 ghc-options: -O2
34 exposed-modules: System.Entropy
35 exposed-modules: System.Entropy
@@ -41,16 +42,20 @@ library
41 default-language: Haskell2010
42 default-language: Haskell2010
42 if(flag(halvm))
43 if(flag(halvm))
43 cpp-options: -DXEN -DHAVE_RDRAND
44 cpp-options: -DXEN -DHAVE_RDRAND
45+ cc-options: -DXEN -DHAVE_RDRAND
44 if arch(x86_64)
46 if arch(x86_64)
45 cpp-options: -Darch_x86_64
47 cpp-options: -Darch_x86_64
48+ -- gcc 4.8.2 on i386 fails to compile rdrand.c when using -fPIC!
49+ c-sources: cbits/rdrand.c
52+ cpp-options: -Darch_i386
46 if os(windows)
53 if os(windows)
47 cpp-options: -DisWindows
54 cpp-options: -DisWindows
48 extra-libraries: advapi32
55 extra-libraries: advapi32
50 if !flag(halvm)
57 if !flag(halvm)
51 Build-Depends: unix
58 Build-Depends: unix
52− c-sources: cbits/rdrand.c
55source-repository head
60source-repository head