summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/random/_generator.pyx1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/random/_generator.pyx b/numpy/random/_generator.pyx
index 8092c8e7a..5153c3827 100644
--- a/numpy/random/_generator.pyx
+++ b/numpy/random/_generator.pyx
@@ -4772,6 +4772,7 @@ cdef class Generator:
return arr[tuple(slices)]
+@cython.embedsignature(True)
def default_rng(seed=None):
"""Construct a new Generator with the default BitGenerator (PCG64).