added srand calls to tests and examples
This commit is contained in:
parent
8b34d4417b
commit
692cfe4f52
@ -126,6 +126,9 @@ function generate_markdown(pkgname::Symbol)
|
||||
|
||||
try
|
||||
|
||||
# we want to always produce consistent results
|
||||
srand(1234)
|
||||
|
||||
# run the code
|
||||
map(eval, example.exprs)
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ using FactCheck
|
||||
|
||||
# don't actually show the plots
|
||||
plotDefault!(:show, false)
|
||||
|
||||
srand(1234)
|
||||
|
||||
# note: we wrap in a try block so that the tests only run if we have the backend installed
|
||||
try
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user