diff --git a/lib/pure/random.nim b/lib/pure/random.nim index 7283547d6c..00e6243a33 100644 --- a/lib/pure/random.nim +++ b/lib/pure/random.nim @@ -625,7 +625,7 @@ proc shuffle*[T](x: var openArray[T]) = doAssert cards == ["King", "Ace", "Queen", "Ten", "Jack"] shuffle(state, x) -when not defined(nimscript): +when not defined(nimscript) and not defined(standalone): import times proc randomize*() {.benign.} =