Testsuite: set the random seed for unitary tests, for reproducibility
parent
2ae1bc7770
commit
a8e54d791a
|
@ -38,6 +38,14 @@ if isoctave
|
||||||
mlist = mlist(find(~strcmp('../matlab/load_m_file_data_legacy.m', mlist)));
|
mlist = mlist(find(~strcmp('../matlab/load_m_file_data_legacy.m', mlist)));
|
||||||
end
|
end
|
||||||
|
|
||||||
|
% Set random seed, for reproducibility
|
||||||
|
if isoctave || matlab_ver_less_than('7.12')
|
||||||
|
randn('state',1);
|
||||||
|
rand('state',1);
|
||||||
|
else
|
||||||
|
rng(1);
|
||||||
|
end
|
||||||
|
|
||||||
failedtests = {};
|
failedtests = {};
|
||||||
|
|
||||||
counter = 0;
|
counter = 0;
|
||||||
|
|
Loading…
Reference in New Issue