Skip to content

Commit 3818204

Browse files
committed
[Random] Remove last references to GLOBAL_RNG in seed! docstring
While the method does use `GLOBAL_RNG` by default, that's an implementation detail, and it eventually uses `default_rng()` internally.
1 parent 074e8f4 commit 3818204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/Random/src/Random.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ julia> rand!(rng, zeros(5))
383383
rand!
384384

385385
"""
386-
seed!([rng=GLOBAL_RNG], seed) -> rng
387-
seed!([rng=GLOBAL_RNG]) -> rng
386+
seed!([rng=default_rng()], seed) -> rng
387+
seed!([rng=default_rng()]) -> rng
388388
389389
Reseed the random number generator: `rng` will give a reproducible
390390
sequence of numbers if and only if a `seed` is provided. Some RNGs

0 commit comments

Comments
 (0)