Skip to content

Commit b72d9eb

Browse files
rfourquetJeffBezanson
authored andcommitted
fix use of srand in docs (moved to stdlib/Random) (#25681)
1 parent 3d0ab52 commit b72d9eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/src/devdocs/subarrays.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ cartesian, rather than linear, indexing.
3636
Consider making 2d slices of a 3d array:
3737

3838
```@meta
39-
DocTestSetup = :(srand(1234))
39+
DocTestSetup = :(import Random; Random.srand(1234))
4040
```
4141
```jldoctest subarray
4242
julia> A = rand(2,3,4);

doc/src/manual/performance-tips.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,8 @@ type:
614614

615615
```@meta
616616
DocTestSetup = quote
617-
srand(1234)
617+
import Random
618+
Random.srand(1234)
618619
end
619620
```
620621

0 commit comments

Comments
 (0)