Fix linalg tests after change in srand function
Merge pull request #1885 from andreasnoackjensen/fixtests

Fix linalg tests after change in srand function