kludge for musl

This commit is contained in:
Neale Pickett 2024-01-22 16:21:58 -07:00
parent a47b19faa6
commit c5739314d3
1 changed files with 3 additions and 0 deletions

3
baud.c
View File

@ -55,6 +55,9 @@ main(int argc, char *argv[]) {
noiselen = atoi(argv[3]);
}
// In musl, the first value is 0
rand();
int cps = baud / 10; // 8N1 has 10 bits per octet: 8 data, 1 start, 1 parity
int delay = SECOND / cps;
int noisybits = 0;