From 757f80b23e034465f34dff436c5248963365a285 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Tue, 16 Jun 2009 20:16:13 +0200 Subject: effectv: Define the fast PRNG function at a central place --- gst/effectv/gsteffectv.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gst/effectv/gsteffectv.h') diff --git a/gst/effectv/gsteffectv.h b/gst/effectv/gsteffectv.h index 30b09e78..a9539919 100644 --- a/gst/effectv/gsteffectv.h +++ b/gst/effectv/gsteffectv.h @@ -23,3 +23,11 @@ #include +static inline guint +fastrand (void) +{ + static guint fastrand_val; + + return (fastrand_val = fastrand_val * 1103515245 + 12345); +} + -- cgit