entropy 0.3.6 → 0.3.7
raw patch · 2 files changed
+5/−5 lines, 2 filesdep ~unixPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: unix
API changes (from Hackage documentation)
Files
- cbits/rdrand.c +2/−2
- entropy.cabal +3/−3
cbits/rdrand.c view
@@ -13,7 +13,7 @@ #ifdef arch_x86_64 // Returns 1 on success-inline int _rdrand64_step(uint64_t *therand)+static inline int _rdrand64_step(uint64_t *therand) { unsigned char err; asm volatile("rdrand %0 ; setc %1"@@ -56,7 +56,7 @@ #ifdef arch_i386 // Returns 1 on success-inline int _rdrand32_step(uint32_t *therand)+static inline int _rdrand32_step(uint32_t *therand) { unsigned char err; asm volatile("rdrand %0 ; setc %1"
entropy.cabal view
@@ -1,5 +1,5 @@ name: entropy-version: 0.3.6+version: 0.3.7 description: A platform independent method to obtain cryptographically strong entropy (RDRAND when available anywhere, urandom on nix, CryptAPI on Windows, patches welcome) Users looking for cryptographically strong (number-theoretically@@ -49,13 +49,13 @@ cc-options: -DXEN -DHAVE_RDRAND if arch(x86_64) cpp-options: -Darch_x86_64- cc-options: -Darch_x86_64+ cc-options: -Darch_x86_64 -O2 -- gcc 4.8.2 on i386 fails to compile rdrand.c when using -fPIC! c-sources: cbits/rdrand.c include-dirs: cbits if arch(i386) cpp-options: -Darch_i386- cc-options: -Darch_i386+ cc-options: -Darch_i386 -O2 if os(windows) cpp-options: -DisWindows cc-options: -DisWindows