# HG changeset patch # User Rik # Date 1450484465 28800 # Node ID 7832c351a6f5cccff0bbf68dfbc1c1748bb15f9e # Parent a4f5da7c54636b007796664b82c5fafd22fa897e svds.m: Don't save/restore randn seed in BIST tests. * svds.m: Don't save/restore randn seed in BIST tests. diff -r a4f5da7c5463 -r 7832c351a6f5 scripts/sparse/svds.m --- a/scripts/sparse/svds.m Fri Dec 18 16:18:41 2015 -0800 +++ b/scripts/sparse/svds.m Fri Dec 18 16:21:05 2015 -0800 @@ -259,9 +259,7 @@ %! s = s(idx); %! u = u(:, idx); %! v = v(:, idx); -%! randn_state = randn ("state"); %! rand_state = rand ("state"); -%! randn ("state", 42); % Initialize to make normest function reproducible %! rand ("state", 42); %! opts.v0 = rand (2*n,1); % Initialize eigs ARPACK starting vector %! % to guarantee reproducible results @@ -301,7 +299,6 @@ %! assert (s, ones (6, 1), 8*eps); %!test -%! ## Restore random number generator seeds at end of tests +%! ## Restore random number generator seed at end of tests %! rand ("state", rand_state); -%! randn ("state", randn_state);