Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonas Plewinski
pystencils
Commits
7d06580f
Commit
7d06580f
authored
Aug 06, 2019
by
Michael Kuron
Browse files
Seeding of RNG
parent
5c037c66
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/rng.py
View file @
7d06580f
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment