mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
Move random seed prior to first random() call
This commit is contained in:
1 parent
5ef3f95d71
commit
35dcdd5315
1 file changed
+1
-1
@@ -3,9 +3,9 @@ from numpy.testing import assert_equal
|
||||
|
||||
from skimage.transform import integral_image, integrate
|
||||
|
||||
np.random.seed(0)
|
||||
x = (np.random.random((50, 50)) * 255).astype(np.uint8)
|
||||
s = integral_image(x)
|
||||
np.random.seed(0)
|
||||
|
||||
|
||||
def test_validity():
|
||||
|
||||
Reference in new issue
Block a user