rust-numpy icon indicating copy to clipboard operation
rust-numpy copied to clipboard

`rand::RngCore` implementation for `numpy.random.Generator`

Open flying-sheep opened this issue 7 months ago • 0 comments

We should allow a way to pass a numpy.random.Generator to a pyo3 function and use it on the Rust side by something requiring a rand::Rng by implementing rand::RngCore.

See

  • https://numpy.org/doc/stable/reference/random/c-api.html
  • https://numpy.org/doc/stable/reference/random/extending.html

flying-sheep avatar Jun 05 '25 15:06 flying-sheep