Skip to content
Snippets Groups Projects

Seeding of RNG

Closed Michael Kuron requested to merge rng_seed into test_martin
+ 1
1
@@ -119,7 +119,7 @@ class PhiloxFourFloats(CustomCodeNode):
@@ -119,7 +119,7 @@ class PhiloxFourFloats(CustomCodeNode):
def random_symbol(assignment_list, rng_node=PhiloxTwoDoubles, *args, **kwargs):
def random_symbol(assignment_list, rng_node=PhiloxTwoDoubles, *args, **kwargs):
if 'keys' not in kwargs:
if 'keys' not in kwargs:
kwargs['keys'] = (0, 0)
kwargs['keys'] = (0, TypedSymbol("seed", np.uint32))
while True:
while True:
node = rng_node(*args, **kwargs)
node = rng_node(*args, **kwargs)
Loading