util/nvmutil: only have newrandom on linux/oldunix

these variables newrandom and oldrandom are unused on
BSD systems, and their unused status may trigger
warnings on some compilers.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-07 13:18:54 +00:00
parent c195e8cc2b
commit 96cb52f21a

View File

@@ -113,9 +113,9 @@ static void set_err(int errval);
*/
#define items(x) (sizeof((x)) / sizeof((x)[0]))
#ifndef HAVE_ARC4RANDOM_BUF
static const char newrandom[] = "/dev/urandom";
static const char oldrandom[] = "/dev/random"; /* fallback on OLD unix */
#ifndef HAVE_ARC4RANDOM_BUF
static const char *rname = NULL;
#endif