Skip to content

Commit

Permalink
Update TaskLocalRNG docstring according to JuliaLang#49110
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwe authored Sep 25, 2024
1 parent 25cbe00 commit ccda834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/Random/src/Xoshiro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ end
TaskLocalRNG
The `TaskLocalRNG` has state that is local to its task, not its thread.
It is seeded upon task creation, from the state of its parent task.
Therefore, task creation is an event that changes the parent's RNG state.
It is seeded upon task creation, from the state of its parent task, but without
advancing the state of the parent's RNG.
As an upside, the `TaskLocalRNG` is pretty fast, and permits reproducible
multithreaded simulations (barring race conditions), independent of scheduler
Expand Down

0 comments on commit ccda834

Please sign in to comment.