Commit a5930cf9 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

more new syntax

parent 50def814
Pipeline #71928 passed with stages
in 14 minutes and 57 seconds
......@@ -29,12 +29,11 @@ def test_rand1():
def test_rand2():
with ift.random.Context(31):
sseq = ift.random.spawn_sseq(10)
with ift.random.Context(sseq[2]):
a = ift.random.current_rng().integers(0,1000000000)
with ift.random.Context(sseq[2]):
b = ift.random.current_rng().integers(0,1000000000)
sseq = ift.random.spawn_sseq(10)
with ift.random.Context(sseq[2]):
a = ift.random.current_rng().integers(0,1000000000)
with ift.random.Context(sseq[2]):
b = ift.random.current_rng().integers(0,1000000000)
np.testing.assert_equal(a,b)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment