Skip to content

random_double_fill is wrongly defined (I think) #19312

@joemarshall

Description

@joemarshall

In numpy/random/_common.pxd random_double_fill is defined as returning double

ctypedef double (*random_double_fill)(bitgen_t *state, np.npy_intp count, double* out) nogil

But in c_distributions.pxd the fill functions are defined as returning void e.g.

void random_standard_uniform_fill(bitgen_t* bitgen_state, npy_intp cnt, double *out) nogil

This causes problems on webassembly where return types are checked.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions