summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorJjp137 <Jjp137@users.noreply.github.com>2019-10-25 00:47:34 -0700
committerAndreas Rumpf <rumpf_a@web.de>2019-10-25 09:47:34 +0200
commit1d42108fdaa3099ecfc7d24bdfda02ecb9cdac64 (patch)
tree8a97fc20d48b7651f3eb21881ad56be12cf1fe6a /lib/pure
parent5b3571c9a4b468ee95eae5d05d37d54f3016d9cd (diff)
downloadNim-1d42108fdaa3099ecfc7d24bdfda02ecb9cdac64.tar.gz
sequtils: replace deprecated 'random' call within example (#12515) [backport]
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/collections/sequtils.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/collections/sequtils.nim b/lib/pure/collections/sequtils.nim
index 9ea8c44f7..0207c2bde 100644
--- a/lib/pure/collections/sequtils.nim
+++ b/lib/pure/collections/sequtils.nim
@@ -903,7 +903,7 @@ template newSeqWith*(len: int, init: untyped): untyped =
 
     ## Creates a sequence of 20 random numbers from 1 to 10
     import random
-    var seqRand = newSeqWith(20, random(10))
+    var seqRand = newSeqWith(20, rand(10))
 
   var result = newSeq[type(init)](len)
   for i in 0 ..< len: