tests: seed random number generator to make tests deterministic
Merge branch 'tickets/DM-1019'