seed random number generator for tests. Fix rules.mk.