Skip to content

Commit

Permalink
stack.yaml: Completely disable RDRAND support in cryptonite
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed Sep 8, 2020
1 parent d7dc954 commit dc160c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nix/.stack.nix/default.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ flags:
cardano-crypto-praos:
external-libsodium-vrf: false

# Using RDRAND instead of /dev/urandom as an entropy source for key
# generation is dubious. Set the flag so we use /dev/urandom by default.
cryptonite:
support_rdrand: false

# Generate files required by Weeder.
# See https://github.com/ndmitchell/weeder/issues/53
ghc-options: {"$locals": -ddump-to-file -ddump-hi}
Expand Down

0 comments on commit dc160c6

Please sign in to comment.