summaryrefslogtreecommitdiff
path: root/libavutil/lfg.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/lfg.h')
-rw-r--r--libavutil/lfg.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/lfg.h b/libavutil/lfg.h
index 3250c18e79..ac89d120d5 100644
--- a/libavutil/lfg.h
+++ b/libavutil/lfg.h
@@ -51,4 +51,12 @@ static inline unsigned int av_mlfg_get(AVLFG *c){
return c->state[c->index++ & 63] = 2*a*b+a+b;
}
+/**
+ * Gets the next two numbers generated by a Box-Muller Gaussian
+ * generator using the random numbers issued by lfg.
+ *
+ * @param out[2] array where are placed the two generated numbers
+ */
+void av_bmg_get(AVLFG *lfg, double out[2]);
+
#endif /* AVUTIL_LFG_H */