adding random seeding context manager