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

Compatibility wit newer randomgen version

parent f01bf716
No related branches found
No related tags found
1 merge request!260Fix pipeline
......@@ -78,9 +78,8 @@ def test_rng(target, rng, precision, dtype, t=124, offsets=(0, 0), keys=(0, 0),
int_reference = np.empty(dh.shape + (4,), dtype=int)
for x in range(dh.shape[0]):
for y in range(dh.shape[1]):
r = Philox(counter=t + (x + offset_values[0]) * 2 ** 32 + (y + offset_values[1]) * 2 ** 64,
r = Philox(counter=t + (x + offset_values[0]) * 2 ** 32 + (y + offset_values[1]) * 2 ** 64 - 1,
key=keys[0] + keys[1] * 2 ** 32, number=4, width=32, mode="sequence")
r.advance(-4, counter=False)
int_reference[x, y, :] = r.random_raw(size=4)
if precision == 'float' or dtype == 'float':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment