lfg.c File Reference
#include <inttypes.h>
#include <limits.h>
#include <math.h>
#include "lfg.h"
#include "md5.h"
#include "intreadwrite.h"
#include "attributes.h"
Include dependency graph for lfg.c:

Go to the source code of this file.

Functions

av_cold void av_lfg_init (AVLFG *c, unsigned int seed)
 
void av_bmg_get (AVLFG *lfg, double out[2])
 Get the next two numbers generated by a Box-Muller Gaussian generator using the random numbers issued by lfg. More...
 

Function Documentation

void av_bmg_get ( AVLFG lfg,
double  out[2] 
)

Get the next two numbers generated by a Box-Muller Gaussian generator using the random numbers issued by lfg.

Parameters
outarray where the two generated numbers are placed

Definition at line 47 of file lfg.c.

Referenced by av_bmg_get(), and av_mlfg_get().