From de64b7014b9dc54fe06b52e14dfc685d72f6ab0b Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 3 Feb 2020 05:41:11 -0800 Subject: libs/sig: add sig_ops_rand random generator (Ab)uses rand_r by feeding ticks_ms as seedp for pseudo-random numbers deterministically derived from ticks_ms. --- src/libs/sig/sig.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libs/sig/sig.h') diff --git a/src/libs/sig/sig.h b/src/libs/sig/sig.h index 0a374f5..32bf446 100644 --- a/src/libs/sig/sig.h +++ b/src/libs/sig/sig.h @@ -18,6 +18,7 @@ sig_t * sig_free(sig_t *sig); float sig_output(sig_t *sig, unsigned ticks_ms); extern sig_ops_t sig_ops_const; +extern sig_ops_t sig_ops_rand; extern sig_ops_t sig_ops_sin; /* TODO: -- cgit v1.2.3