From 571486be007f6c39c9d0ab51be648e13e804fcfa Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Thu, 15 Sep 2016 20:50:55 +0100 Subject: [PATCH] don't use rdrand on windows fix #99 --- cryptonite.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptonite.cabal b/cryptonite.cabal index b1c8a77..9c6401b 100644 --- a/cryptonite.cabal +++ b/cryptonite.cabal @@ -245,7 +245,7 @@ Library if arch(x86_64) CPP-options: -DARCH_X86_64 - if flag(support_rdrand) && (arch(i386) || arch(x86_64)) + if flag(support_rdrand) && (arch(i386) || arch(x86_64)) && !os(windows) CPP-options: -DSUPPORT_RDRAND Other-modules: Crypto.Random.Entropy.RDRand c-sources: cbits/cryptonite_rdrand.c