Skip to content

Commit

Permalink
ADDED warning to RNG docs not to rely on the generated stream during …
Browse files Browse the repository at this point in the history
…testing (#34670)
  • Loading branch information
Seelengrab authored and KristofferC committed Apr 11, 2020
1 parent 5f0158f commit bf08a14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stdlib/Random/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ unbounded integers, the interval must be specified (e.g. `rand(big.(1:6))`).
Additionally, normal and exponential distributions are implemented for some `AbstractFloat` and
`Complex` types, see [`randn`](@ref) and [`randexp`](@ref) for details.

!!! warn
Because the precise way in which random numbers are generated is considered an implementation detail, bug fixes and speed improvements may change the stream of numbers that are generated after a version change. Relying on a specific seed or generated stream of numbers during unit testing is thus discouraged - consider testing properties of the methods in question instead.

## Random numbers module
```@docs
Random.Random
Expand Down

0 comments on commit bf08a14

Please sign in to comment.