added srand calls to tests and examples

This commit is contained in:
Thomas Breloff 2015-09-20 22:59:25 -04:00
parent 8b34d4417b
commit 692cfe4f52
2 changed files with 4 additions and 1 deletions

View File

@ -126,6 +126,9 @@ function generate_markdown(pkgname::Symbol)
try try
# we want to always produce consistent results
srand(1234)
# run the code # run the code
map(eval, example.exprs) map(eval, example.exprs)

View File

@ -5,7 +5,7 @@ using FactCheck
# don't actually show the plots # don't actually show the plots
plotDefault!(:show, false) plotDefault!(:show, false)
srand(1234)
# note: we wrap in a try block so that the tests only run if we have the backend installed # note: we wrap in a try block so that the tests only run if we have the backend installed
try try