template.c: remove function random
This commit is contained in:
parent
8bc7c712b7
commit
de7e641abb
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user