bugfix: set.seed

Was using an undefined variable when setting the seed.