diff options
author | Matti Picus <matti.picus@gmail.com> | 2022-01-27 09:24:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 09:24:14 +0200 |
commit | df80af3da6cb7b71a140528db5a8bb11360e5452 (patch) | |
tree | 1b1f5aace0a99baca1a0e37d47fb92c78a1867bc | |
parent | eee12b6fcf2b05bcdd7fc55da1a5df5d3bee9c28 (diff) | |
parent | 575e6b726adcd2c1bef5ca0185aa2b2178cea20e (diff) | |
download | numpy-df80af3da6cb7b71a140528db5a8bb11360e5452.tar.gz |
Merge pull request #20911 from hoodmane/random-float-fill-return-type
BUG: Fix the return type of random_float_fill
-rw-r--r-- | numpy/random/_common.pxd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/_common.pxd b/numpy/random/_common.pxd index 9f2e8c3ca..3625634cd 100644 --- a/numpy/random/_common.pxd +++ b/numpy/random/_common.pxd @@ -45,7 +45,7 @@ ctypedef double (*random_double_1)(void *state, double a) nogil ctypedef double (*random_double_2)(void *state, double a, double b) nogil ctypedef double (*random_double_3)(void *state, double a, double b, double c) nogil -ctypedef double (*random_float_fill)(bitgen_t *state, np.npy_intp count, float* out) nogil +ctypedef void (*random_float_fill)(bitgen_t *state, np.npy_intp count, float* out) nogil ctypedef float (*random_float_0)(bitgen_t *state) nogil ctypedef float (*random_float_1)(bitgen_t *state, float a) nogil |