Nim/lib
Antonis Geralis f34734ffb4
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>
2022-07-18 21:18:12 +02:00
..
arch/x86 Coroutine rework. 2017-02-20 17:24:19 +02:00
core macros: make hasCustomPragma more permissive (#19747) 2022-04-25 22:16:11 +02:00
deprecated/pure remove std/sharedstrings (#19228) 2021-12-09 22:37:59 +08:00
experimental gitutils: add diffStrings, diffFiles, and use it in testament to compare expected vs gotten (#17892) 2021-04-30 11:00:33 +02:00
genode Genode platform fixes (#17521) 2021-04-09 16:29:10 +02:00
genode_cpp [std/locks]close #7998(complete condition variables) (#17711) 2021-04-19 10:51:13 +02:00
impure fix typo in nre.nim (#19915) 2022-06-21 09:53:46 +08:00
js jsffi add missing braces (#19948) 2022-06-30 23:18:11 +02:00
packages/docutils Improve Markdown code blocks & start moving docs to Markdown style (#19954) 2022-07-15 19:27:54 +02:00
posix epoll: correct mapping [backport] (#20058) 2022-07-18 21:03:25 +02:00
pure Improve rand(bool) (#20045) 2022-07-18 21:18:12 +02:00
std sysrand: fix syscall signature [backport] (#19982) 2022-07-07 21:26:58 +08:00
system Fixing nimRawSetJmp for vcc and clangcl on Windows (#19959) 2022-07-04 13:52:44 +02:00
windows enable style:usages for stdlib tests [backport: 1.6] (#19715) 2022-04-13 11:53:02 +02:00
wrappers Correctly import libcrypto functions using dynlib (#19881) 2022-06-13 09:22:20 +02:00
cycle.h Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
deps.txt added lib/deps.txt 2021-06-03 14:00:53 +02:00
nimbase.h Add error message to pointer size check assert in lib/nimbase.h (#19549) 2022-02-27 15:36:16 +01:00
nimhcr.nim fixes #17647 (#17667) 2021-04-07 23:26:53 +02:00
nimhcr.nim.cfg Initial version of the hot-code reloading support for native targets (#10729) 2019-02-26 15:48:55 +01:00
nimrtl.nim add missing docs (#18758) 2021-08-29 09:18:54 +02:00
nimrtl.nim.cfg Initial version of the hot-code reloading support for native targets (#10729) 2019-02-26 15:48:55 +01:00
stdlib.nimble attempt to make the build green again 2017-01-07 02:55:15 +01:00
system.nim fixes #20015; document shallowCopy does a deep copy with ARC/ORC (#20025) 2022-07-14 18:42:56 +08:00
system_overview.rst move io out of system (#19442) 2022-02-02 17:10:11 +01:00