Comments (3)
Did a major rework of nim-passgen library that NPG is based on to use nimcrypto random number generator. This enabled a much wider platform support, including Windows, Linux, MacOS and some versions of BSD.
from npg.
may be related
icyphox/nanoid.nim#1
It seems that the issue is caused by CryptGenRandom being deprecated: https://docs.microsoft.com/en-us/windows/desktop/api/wincrypt/nf-wincrypt-cryptgenrandom. It must be missing in my Windows 10 Insider build.
nim-random uses it for urandom on Windows: https://github.com/oprypin/nim-random#randomurandom
Why can't we switch to the random module from stdlib?
Now you can try std/sysrand, though it is on devel and expermental.
nim-lang/Nim#16459
from npg.
@xflywind correct, I didn't want use random from stdlib because of known quality issues. See for instance, https://forum.nim-lang.org/t/6843#42756. I'll look into what's available when I get the chance. Thanks for the pointer to std/sysrand.
from npg.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npg.