From 7d06580f5621b44d29b516d52d82bf06b7bc6f49 Mon Sep 17 00:00:00 2001
From: Michael Kuron <mkuron@icp.uni-stuttgart.de>
Date: Tue, 6 Aug 2019 14:19:01 +0200
Subject: [PATCH] Seeding of RNG

---
 pystencils/rng.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pystencils/rng.py b/pystencils/rng.py
index 91cccaeef..88890a947 100644
--- a/pystencils/rng.py
+++ b/pystencils/rng.py
@@ -119,7 +119,7 @@ class PhiloxFourFloats(CustomCodeNode):
 
 def random_symbol(assignment_list, rng_node=PhiloxTwoDoubles, *args, **kwargs):
     if 'keys' not in kwargs:
-        kwargs['keys'] = (0, 0)
+        kwargs['keys'] = (0, TypedSymbol("seed", np.uint32))
 
     while True:
         node = rng_node(*args, **kwargs)
-- 
GitLab