From de7e641abb580b917c26dae12c3aab92e79ce96d Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sat, 18 Nov 2023 20:03:13 +0300 Subject: [PATCH] template.c: remove function `random` --- src/template.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/template.c b/src/template.c index 2823bcc..a190b24 100644 --- a/src/template.c +++ b/src/template.c @@ -55,9 +55,6 @@ bool silent_mode = false, debug_mode = false; void debug_print(void); -long double -random(void); - SAMPLE_TYPE bytebeat(long double w); @@ -79,19 +76,6 @@ debug_print(void) return; } -long double -random(void) -{ - static int initialized = 0; - - if (!initialized) { - srand(time(NULL)); - initialized = 1; - } - - return (long double)rand() / RAND_MAX; -} - SAMPLE_TYPE bytebeat(long double w) {