Open
Description
Describe the solution you'd like
It would be nice if ROOT provided a C++ function to generate a sequence of pseudo-random numbers that are frequently used in electronics testing, see:
https://en.wikipedia.org/wiki/Pseudorandom_binary_sequence
Describe alternatives you've considered
- Perl https://metacpan.org/pod/Math::PRBS
- Matlab https://es.mathworks.com/help/serdes/ref/prbs.html
- Python https://www.reddit.com/r/askscience/comments/63a10q/for_prbs3_with_clock_input_on_each_gate_how_can/
- online examples https://www3.advantest.com/documents/11348/33b24c8a-c8cb-40b8-a2a7-37515ba4abc8 https://gist.github.com/mattbierner/d6d989bf26a7e54e7135
Additional context
Pulse generators usually generate this random bits. To know whether things are working in your data acquisition, you have to compare with the expected values.
https://cryptography.fandom.com/wiki/Linear_feedback_shift_register
There are also some snippets in ROOT using it, like here: https://root.cern/doc/master/civetweb_8c_source.html