Skip to content
Snippets Groups Projects
Commit 7d06580f authored by Michael Kuron's avatar Michael Kuron :mortar_board:
Browse files

Seeding of RNG

parent 5c037c66
Branches ponsuganth/mixed-mass-operators
No related tags found
No related merge requests found
...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment