32 uint8_t tmp[16] = { 0 };
35 for (i = 8; i < 64; i += 4) {
54 w = x1 * x1 + x2 * x2;
57 w = sqrt((-2.0 * log(w)) / w);
73 for (j = 0; j < 10000; j++) {
75 for (i = 0; i < 624; i++) {
90 for (i = 0; i < 1000; i += 2) {
95 bmg_out[0] * stddev + mean,
96 bmg_out[1] * stddev + mean);
Macro definitions for various function/variable attributes.
void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len)
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...
void av_log(void *avcl, int level, const char *fmt,...)
int main(int argc, char **argv)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static unsigned int av_lfg_get(AVLFG *c)
Get the next random unsigned 32-bit number using an ALFG.
void av_cold av_lfg_init(AVLFG *c, unsigned int seed)