summaryrefslogtreecommitdiff
path: root/numpy/random/__init__.pxd
blob: 05e07387667384251d9e4af5f6cc7cfe27dad314 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cimport numpy as np
from libc.stdint cimport uint32_t, uint64_t

cdef extern from "numpy/random/bitgen.h":
    struct bitgen:
        void *state
        uint64_t (*next_uint64)(void *st) nogil
        uint32_t (*next_uint32)(void *st) nogil
        double (*next_double)(void *st) nogil
        uint64_t (*next_raw)(void *st) nogil

    ctypedef bitgen bitgen_t

from numpy.random._bit_generator cimport BitGenerator, SeedSequence