summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorCharlie <bartoc@umich.edu>2014-05-18 15:16:35 -0400
committerCharlie <bartoc@umich.edu>2014-05-18 15:16:35 -0400
commitd32b4272c3eb7cb1356fad6279bd3b7b27158508 (patch)
treee64487a959b9e5d622c5df0b8de838a9a798528b /lib
parent8a183dac78a5076d421dcbff263c6d163fe2a7fc (diff)
downloadNim-d32b4272c3eb7cb1356fad6279bd3b7b27158508.tar.gz
added a note about random(max: float): float's resolution on windows
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/math.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/math.nim b/lib/pure/math.nim
index 24a2ec7fa..78ea02cbf 100644
--- a/lib/pure/math.nim
+++ b/lib/pure/math.nim
@@ -139,7 +139,8 @@ proc random*(max: float): float {.gcsafe.}
   ## returns a random number in the range 0..<max. The sequence of
   ## random number is always the same, unless `randomize` is called
   ## which initializes the random number generator with a "random"
-  ## number, i.e. a tickcount. This is currently not supported for windows.
+  ## number, i.e. a tickcount. This has a 16-bit resolution on windows
+  ## and a 48-bit resolution on other platforms.
 
 proc randomize*() {.gcsafe.}
   ## initializes the random number generator with a "random"