Skip to content

Commit 76a9772

Browse files
authored
add using Random to UUIDs docstring (#50622)
this makes the docstring more self-contained
1 parent 19f6926 commit 76a9772

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/UUIDs/src/UUIDs.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ detail that may change in the future.
5353
5454
# Examples
5555
```jldoctest; filter = r"[a-z0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}"
56+
julia> using Random
57+
5658
julia> rng = MersenneTwister(1234);
5759
5860
julia> uuid1(rng)
@@ -99,6 +101,8 @@ detail that may change in the future.
99101
100102
# Examples
101103
```jldoctest
104+
julia> using Random
105+
102106
julia> rng = MersenneTwister(1234);
103107
104108
julia> uuid4(rng)
@@ -123,6 +127,8 @@ as specified by RFC 4122.
123127
124128
# Examples
125129
```jldoctest
130+
julia> using Random
131+
126132
julia> rng = MersenneTwister(1234);
127133
128134
julia> u4 = uuid4(rng)

0 commit comments

Comments
 (0)