Hi!
Linda, you **must not** use rand(). It's not thread-safe, and GNU Radio
is inherently multithreaded. For reference, I've pointed that out in a
recent mail exchange [-1]; the recommendation was the same as Dave's:
use C++11's std:: random generators; that email even has a small code
example :)
If you have C++11 or higher you can use
http://en.cppreference.com/w/cpp/numeric/random/uniform_real_distribution.
I think that solves the first problem. Check out
https://stackoverflow.com/questions/32889309/adding-gaussian-noise for an
example of using it for Gaussian noise.
On Tue, Jun 5,
I understand the uniform random generator and Gaussian generator have
already been implemented in gnuradio. However, For some reason, I need to
implement some customized blocks to generate my own random sequences.
Could an expert here explain:
1. Is there a function in C++ that can generate a