moved random procs from math to its own module (breaking change)
This commit is contained in:
parent
5575cfd3ec
commit
95bb19a579
12 changed files with 43 additions and 122 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue