diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-05-30 15:07:19 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-05-30 16:24:52 +0200 |
commit | 95bb19a57938b75a58169f816856be0cad4474b9 (patch) | |
tree | 231479f42aa725c0e11d0502905b617cb1f630b0 /lib/pure/concurrency | |
parent | 5575cfd3ec6124fd0447b00b3edc40c0a25f79da (diff) | |
download | Nim-95bb19a57938b75a58169f816856be0cad4474b9.tar.gz |
moved random procs from math to its own module (breaking change)
Diffstat (limited to 'lib/pure/concurrency')
-rw-r--r-- | lib/pure/concurrency/cpuload.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/concurrency/cpuload.nim b/lib/pure/concurrency/cpuload.nim index 22598b5c9..b0fd002ed 100644 --- a/lib/pure/concurrency/cpuload.nim +++ b/lib/pure/concurrency/cpuload.nim @@ -79,6 +79,8 @@ proc advice*(s: var ThreadPoolState): ThreadPoolAdvice = inc s.calls when not defined(testing) and isMainModule: + import random + proc busyLoop() = while true: discard random(80) |