fix: set random seed in test_noisy_square_image

This commit is contained in:
Josh Warner (Mac)
2013-01-16 23:35:50 -06:00
parent 8578158f1d
commit 6d2aad45ab
+1
View File
@@ -31,6 +31,7 @@ def test_square_image():
def test_noisy_square_image():
im = np.zeros((50, 50)).astype(float)
im[:25, :25] = 1.
np.random.seed(seed=1234)
im = im + np.random.uniform(size=im.shape) * .2
# Moravec