diff options
author | Antonis Geralis <43617260+planetis-m@users.noreply.github.com> | 2022-07-18 22:18:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-18 21:18:12 +0200 |
commit | f34734ffb4c58d6f3ec3d177efcff24f379b41b8 (patch) | |
tree | 1fb0f326758d5f7f9676de30e38bf1595764bb94 /tools/niminst | |
parent | f2e440730634a4679cb140234eae7c11251349ec (diff) | |
download | Nim-f34734ffb4c58d6f3ec3d177efcff24f379b41b8.tar.gz |
Improve rand(bool) (#20045)
* Improve rand(bool) * Use sign test instead of mod 2 * Use mod 2 again, as it works for js * Use right shift as suggested by the authors of xoroshiro * Update random.nim * General case doesn't need any right shift it was correct to begin with * Update random.nim * add comment Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
Diffstat (limited to 'tools/niminst')
0 files changed, 0 insertions, 0 deletions