Skip to content

Commit

Permalink
fixes #23051; fixes initRand docuementation entry
Browse files Browse the repository at this point in the history
fixes #23051

`since` is hardly useful with `useVersion` removed
  • Loading branch information
ringabout authored Dec 14, 2023
1 parent 1b7b0d6 commit 5b8bd05
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/pure/random.nim
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ when not defined(standalone):

var baseState: Rand

proc initRand(): Rand =
proc initRand*(): Rand =
## Initializes a new Rand state.
##
## The resulting state is independent of the default RNG's state.
Expand Down Expand Up @@ -724,9 +724,6 @@ when not defined(standalone):
result = baseState
baseState.skipRandomNumbers

since (1, 5, 1):
export initRand

proc randomize*() {.benign.} =
## Initializes the default random number generator with a seed based on
## random number source.
Expand Down

0 comments on commit 5b8bd05

Please sign in to comment.