tools: use rand() as fallback of random().
authorJehan <jehan@girinstud.io>
Mon, 24 Jan 2022 14:11:34 +0000 (15:11 +0100)
committerJehan <jehan@girinstud.io>
Mon, 24 Jan 2022 14:21:05 +0000 (15:21 +0100)
commit1f1ce31cfe8650c497d11d8b17614ae9da01b637
treea0ddbeda15f202eefab3a794751568280762b192
parent22bd31c3666bfc9a07033a62ff7e94fae9b7af6d
tools: use rand() as fallback of random().

This fixes building babl on Windows as the random() API is not available
there (unlike rand()). Windows docs says it's not cryptographically
secure but for this tool usage, it's probably enough and I see we use
the same function replacement tricks on other tool sources.
tools/babl-lut-verify.c