-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Urand compile fails on Windows #1
Comments
may be related
Now you can try std/sysrand, though it is on devel and expermental. |
@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. |
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. |
$ nimble install npg
Downloading https://github.com/rustomax/npg using git
Verifying dependencies for [email protected]
Installing passgen@>= 0.1.0
Downloading https://github.com/rustomax/nim-passgen using git
Verifying dependencies for [email protected]
Installing urand@>= 0.1.0
Downloading https://github.com/Matceporial/nim-urand using git
Verifying dependencies for [email protected]
Installing [email protected]
Success: urand installed successfully.
Installing [email protected]
Success: passgen installed successfully.
Installing [email protected]
Building npg/npg.exe using c backend
.nimble\pkgs\urand-0.1.0\urand.nim(61, 29) Error: initialization not allowed here
Prompt: Build failed for '[email protected]', would you like to try installing 'npg@#head' (latest unstable)? [y/N]
Answer: y
Downloading https://github.com/rustomax/npg using git
Verifying dependencies for npg@#head
Info: Dependency on passgen@>= 0.1.0 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on urand@>= 0.1.0 already satisfied
Verifying dependencies for [email protected]
Installing npg@#head
Building npg/npg.exe using c backend
.nimble\pkgs\urand-0.1.0\urand.nim(61, 29) Error: initialization not allowed here
Tip: 26 messages have been suppressed, use --verbose to show them.
Error: Build failed for package: npg
... Execution failed with exit code 1
... Command: .nimble\bin\nim.exe c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.1.0 --path:.nimble\pkgs\passgen-0.1.0 --path:.nimble\pkgs\urand-0.1.0 --hints:off -o:AppData\Local\Temp\nimble_17884\githubcom_rustomaxnpg_#head\npg.exe AppData\Local\Temp\nimble_17884\githubcom_rustomaxnpg_#head\src\npg.nim
The text was updated successfully, but these errors were encountered: