MCPcopy Create free account
hub / github.com/dask/dask / test_random_seed

Function test_random_seed

dask/array/tests/test_random.py:137–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135
136
137def test_random_seed():
138 da.random.seed(123)
139 x = da.random.normal(size=10, chunks=5)
140 y = da.random.normal(size=10, chunks=5)
141
142 da.random.seed(123)
143 a = da.random.normal(size=10, chunks=5)
144 b = da.random.normal(size=10, chunks=5)
145
146 assert_eq(x, a)
147 assert_eq(y, b)
148
149
150def test_consistent_across_sizes(generator_class):

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
seedMethod · 0.45
normalMethod · 0.45

Tested by

no test coverage detected