GithubHelp home page GithubHelp logo

Urand compile fails on Windows about npg HOT 3 CLOSED

rustomax avatar rustomax commented on June 29, 2024
Urand compile fails on Windows

from npg.

Comments (3)

rustomax avatar rustomax commented on June 29, 2024 1

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.

ringabout avatar ringabout commented on June 29, 2024

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.

rustomax avatar rustomax commented on June 29, 2024

@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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.