You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std/random produces different results on c/js[node] with int32.
I understand that it would not work with int64 but with int32 it should produce the same in my opinion
import std/random
randomize(123'i32)
echorand(int32.high)
# Generates different results on c/js[node]# C: 1187002471# CPP: 1187002471# js node: 822997781
Nim Version
$ nim --version
Nim Compiler Version 2.0.8 [Linux: amd64]
Compiled at 2024-07-03
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: 5935c3b
active boot switches: -d:release
Description
std/random produces different results on c/js[node] with int32.
I understand that it would not work with int64 but with int32 it should produce the same in my opinion
Nim Version
$ nim --version
Nim Compiler Version 2.0.8 [Linux: amd64]
Compiled at 2024-07-03
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: 5935c3b
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: