Skip to content
Snippets Groups Projects
Commit 80961aae authored by Carsten Gräser's avatar Carsten Gräser
Browse files

[test] Make FastAMG-test deterministic

Use fixed seed instead of clock value to make results of
blocked and non-blocked version and results of different
test runs comparable.
parent 3327e6e2
No related branches found
No related tags found
1 merge request!600Make FastAMG work with non-blocked matrices
Pipeline #76223 passed
......@@ -29,7 +29,7 @@ void randomize(const M& mat, V& b)
{
V x=b;
srand((unsigned)std::clock());
srand(20030317);
typedef typename V::iterator iterator;
for(iterator i=x.begin(); i != x.end(); ++i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment