Skip to content

Commit 84e47b1

Browse files
committed
Specified bit generator to ensure backwards compatibility
1 parent f28ed60 commit 84e47b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
import numpy as np
1010
import pytest
1111

12-
pytest.RNG = np.random.default_rng()
12+
bit_gen = np.random.PCG64()
13+
pytest.RNG = np.random.Generator(bit_gen)
1314
# pytest.RNG.bit_generator.state = {
1415
# Set RNG state here
1516
# }

0 commit comments

Comments
 (0)