[TEST] use local random instance rather than thread local version

This influences reprocucibility dramatically since it modifies the
test random sequence while it should just use the private random
instance.