src/p/y/pysolfc-HEAD/PySolFC/trunk/pysollib/pysolrandom.py pysolfc(Download)
class WHRandom(BasicRandom, random.WichmannHill):
def __init__(self, seed=None):
if seed is None:
seed = self._getRandomSeed()
random.WichmannHill.__init__(self, seed)
self.initial_seed = seed
src/r/d/rdkit-HEAD/rdkit/RDRandom.py rdkit(Download)
import random as _random
if sys.hexversion >= 0x20303f0:
_randGen = _random.WichmannHill()
random = _randGen.random
randrange = _randGen.randrange
def seed(val):
global _randGen,random,randrange
_randGen = _random.WichmannHill()
src/p/l/planes-HEAD/sh/protocol.py planes(Download)
for n in range(0, 32)
)
randomGenerator = random.WichmannHill()
@synchronized_method
def generateKey(self):
src/u/n/unixpiger-HEAD/trunk/monitor/api/python/Lib/test/test_zlib.py unixpiger(Download)
# generate random data stream
try:
# In 2.3 and later, WichmannHill is the RNG of the bug report
gen = random.WichmannHill()
except AttributeError:
try:
# 2.2 called it Random
src/u/n/unixpiger-HEAD/trunk/monitor/api/python/Lib/test/test_random.py unixpiger(Download)
class WichmannHill_TestBasicOps(TestBasicOps):
gen = random.WichmannHill()
def test_setstate_first_arg(self):
self.assertRaises(ValueError, self.gen.setstate, (2, None, None))
def test_strong_jumpahead(self):
src/u/n/unixpiger-HEAD/monitor/api/python/Lib/test/test_zlib.py unixpiger(Download)
# generate random data stream
try:
# In 2.3 and later, WichmannHill is the RNG of the bug report
gen = random.WichmannHill()
except AttributeError:
try:
# 2.2 called it Random
src/u/n/unixpiger-HEAD/monitor/api/python/Lib/test/test_random.py unixpiger(Download)
class WichmannHill_TestBasicOps(TestBasicOps):
gen = random.WichmannHill()
def test_setstate_first_arg(self):
self.assertRaises(ValueError, self.gen.setstate, (2, None, None))
def test_strong_jumpahead(self):
src/b/d/bdk-c-HEAD/workspace/script/python/Lib/test/test_zlib.py bdk-c(Download)
# generate random data stream
try:
# In 2.3 and later, WichmannHill is the RNG of the bug report
gen = random.WichmannHill()
except AttributeError:
try:
# 2.2 called it Random
src/b/d/bdk-c-HEAD/trunk/workspace/script/python/Lib/test/test_zlib.py bdk-c(Download)
# generate random data stream
try:
# In 2.3 and later, WichmannHill is the RNG of the bug report
gen = random.WichmannHill()
except AttributeError:
try:
# 2.2 called it Random
src/f/r/fressia-HEAD/trunk/external/jython2.2.1/Lib/test/test_zlib.py fressia(Download)
# generate random data stream
try:
# In 2.3 and later, WichmannHill is the RNG of the bug report
gen = random.WichmannHill()
except AttributeError:
try:
# 2.2 called it Random
1 | 2 | 3 | 4 | 5 | 6 | 7 Next