mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 12:40:35 +00:00
Fix random generator usage
This commit is contained in:
parent
9e77789d8d
commit
ac9ceb7c53
@ -59,7 +59,7 @@ void load_random_data(void *data, volk_gnsssdr_type_t type, unsigned int n)
|
|||||||
{
|
{
|
||||||
std::random_device r;
|
std::random_device r;
|
||||||
std::default_random_engine e1(r());
|
std::default_random_engine e1(r());
|
||||||
std::uniform_int_distribution<float> uniform_dist(-1, 1);
|
std::uniform_real_distribution<float> uniform_dist(-1, 1);
|
||||||
if(type.is_complex) n *= 2;
|
if(type.is_complex) n *= 2;
|
||||||
if(type.is_float)
|
if(type.is_float)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user