@@ -83,8 +83,8 @@ cdef class RandomState:
83
83
See Also
84
84
--------
85
85
Generator
86
- mt19937. MT19937
87
- Bit_Generators
86
+ MT19937
87
+ :ref:`bit_generator`
88
88
89
89
"""
90
90
cdef public object _bit_generator
@@ -3493,9 +3493,9 @@ cdef class RandomState:
3493
3493
cdef int64_t lngood , lnbad , lnsample
3494
3494
3495
3495
# This cast to long is required to ensure that the values are inbounds
3496
- ongood = < np .ndarray > np .PyArray_FROM_OTF (ngood , np .NPY_INT64 , np .NPY_ALIGNED )
3497
- onbad = < np .ndarray > np .PyArray_FROM_OTF (nbad , np .NPY_INT64 , np .NPY_ALIGNED )
3498
- onsample = < np .ndarray > np .PyArray_FROM_OTF (nsample , np .NPY_INT64 , np .NPY_ALIGNED )
3496
+ ongood = < np .ndarray > np .PyArray_FROM_OTF (ngood , np .NPY_LONG , np .NPY_ALIGNED )
3497
+ onbad = < np .ndarray > np .PyArray_FROM_OTF (nbad , np .NPY_LONG , np .NPY_ALIGNED )
3498
+ onsample = < np .ndarray > np .PyArray_FROM_OTF (nsample , np .NPY_LONG , np .NPY_ALIGNED )
3499
3499
3500
3500
if np .PyArray_NDIM (ongood ) == np .PyArray_NDIM (onbad ) == np .PyArray_NDIM (onsample ) == 0 :
3501
3501
@@ -3517,7 +3517,7 @@ cdef class RandomState:
3517
3517
# Convert to int64, if necessary, to use int64 infrastructure
3518
3518
ongood = ongood .astype (np .int64 )
3519
3519
onbad = onbad .astype (np .int64 )
3520
- onbad = onbad .astype (np .int64 )
3520
+ onsample = onsample .astype (np .int64 )
3521
3521
out = discrete_broadcast_iii (& legacy_random_hypergeometric ,& self ._bitgen , size , self .lock ,
3522
3522
ongood , 'ngood' , CONS_NON_NEGATIVE ,
3523
3523
onbad , 'nbad' , CONS_NON_NEGATIVE ,
0 commit comments