Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setSeed(self, seed): random2.Random.__init__(self, seed) self.initial_state = self.getstate()
Python 3 compatible Python 2 `random` Module.