Skip to content

Commit

Permalink
sequtils: replace deprecated 'random' call within example (nim-lang#1…
Browse files Browse the repository at this point in the history
…2515) [backport]
  • Loading branch information
Jjp137 authored and kiyolee committed Nov 7, 2019
1 parent 9ead8ab commit a93c2e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/collections/sequtils.nim
Expand Up @@ -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:
Expand Down

0 comments on commit a93c2e5

Please sign in to comment.