nim-lang / needed-libraries

This repository contains a list a needed libraries.
113 stars 5 forks source link

Random generator #40

Open alehander92 opened 6 years ago

alehander92 commented 6 years ago

(From Nim community survey 2017)

euantorano commented 6 years ago

Would this include reading from system sources of randomness (eg: /dev/urandom)? If so, I have a library that makes that easy: https://github.com/euantorano/sysrandom.nim

FedericoCeratto commented 3 years ago

For cryptographic use do not use handcrafted random generators. Please consider well-known libraries e.g. https://doc.libsodium.org/generating_random_data

mratsim commented 3 years ago

Note that we had auditors review and validate our use of BearSSL CSPRNG as well.

Though our usage is still using the low-level primitives for now https://github.com/status-im/nim-eth/pull/265/files