js8call/getfile.cpp
Allan Bazinet bec9e9e055 Remove dead code from getfile module
This used to be a catch-all for a variety of things that are no longer relevant; merging the current WSJTX version, which contains only a very simple gran() function.
2024-09-07 20:47:50 -07:00

10 lines
235 B
C++

#include "getfile.h"
#include <random>
#include <QRandomGenerator>
/* Generate gaussian random float with mean=0 and std_dev=1 */
float gran()
{
static std::normal_distribution<float> d;
return d (*QRandomGenerator::global ());
}