()
| 436 | |
| 437 | |
| 438 | def test_randomstate_kwargs(): |
| 439 | cupy = pytest.importorskip("cupy") |
| 440 | |
| 441 | rs = da.random.RandomState(RandomState=cupy.random.RandomState) |
| 442 | x = rs.standard_normal((10, 5), dtype=np.float32) |
| 443 | assert x.dtype == np.float32 |
| 444 | |
| 445 | rs = da.random.default_rng(cupy.random.default_rng()) |
| 446 | x = rs.standard_normal((10, 5), dtype=np.float32) |
| 447 | assert x.dtype == np.float32 |
nothing calls this directly
no test coverage detected