summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gr/bindings/docstrings/random_pydoc_template.h
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-03-22 00:37:47 +0100
committermormj <34754695+mormj@users.noreply.github.com>2021-04-06 07:37:17 -0400
commiteb91fb04b3d0ca8124b9bea375e3bf72963fa172 (patch)
treedcf96c9e232b7019a7d81cd16901a95bda8b5471 /gnuradio-runtime/python/gnuradio/gr/bindings/docstrings/random_pydoc_template.h
parent42349ff2855c1bb0148c8191339189b0a4cee675 (diff)
runtime: fix gr::random API to be fixed-width 64 bit, use XOROSHIRO128+
Seeding being inconsistent between gr::random and things like fastnoise source is an outstanding issue (#1559). Fix that by fixing the API, and pivoting to our built-in XOROSHIRO128+, which is also substantially faster than MT19937. For that purpose, introduce, and python-bind, a wrapper class that can be used with STL distribution shapers. Add a unit test for the (P)RNG. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gr/bindings/docstrings/random_pydoc_template.h')
-rw-r--r--gnuradio-runtime/python/gnuradio/gr/bindings/docstrings/random_pydoc_template.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/docstrings/random_pydoc_template.h b/gnuradio-runtime/python/gnuradio/gr/bindings/docstrings/random_pydoc_template.h
index 71fdb84d39..d02cadf872 100644
--- a/gnuradio-runtime/python/gnuradio/gr/bindings/docstrings/random_pydoc_template.h
+++ b/gnuradio-runtime/python/gnuradio/gr/bindings/docstrings/random_pydoc_template.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Free Software Foundation, Inc.
+ * Copyright 2021 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -15,6 +15,24 @@
*/
+static const char* __doc_gr_xoroshiro128p_prng = R"doc()doc";
+
+
+static const char* __doc_gr_xoroshiro128p_prng_xoroshiro128p_prng_0 = R"doc()doc";
+
+
+static const char* __doc_gr_xoroshiro128p_prng_xoroshiro128p_prng_1 = R"doc()doc";
+
+
+static const char* __doc_gr_xoroshiro128p_prng_min = R"doc()doc";
+
+
+static const char* __doc_gr_xoroshiro128p_prng_max = R"doc()doc";
+
+
+static const char* __doc_gr_xoroshiro128p_prng_seed = R"doc()doc";
+
+
static const char* __doc_gr_random = R"doc()doc";