diff --git a/base/stream.jl b/base/stream.jl index b0864409d7ea25..9ce58744b53f17 100644 --- a/base/stream.jl +++ b/base/stream.jl @@ -321,7 +321,7 @@ and take ownership of the fd handle. Call `open(Libc.dup(fd))` to avoid the ownership capture of the original handle. -!!! warn +!!! warning Do not call this on a handle that's already owned by some other part of the system. """ diff --git a/stdlib/Random/docs/src/index.md b/stdlib/Random/docs/src/index.md index 1e84db45dcb325..0de918f10a1af7 100644 --- a/stdlib/Random/docs/src/index.md +++ b/stdlib/Random/docs/src/index.md @@ -26,7 +26,7 @@ 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 +!!! warning 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