mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-10-29 14:37:39 +00:00
Fix random generator usage
This commit is contained in:
@@ -59,7 +59,7 @@ void load_random_data(void *data, volk_gnsssdr_type_t type, unsigned int n)
|
||||
{
|
||||
std::random_device 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_float)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user