util/nvmutil: fix rlong static variables

whoops

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-18 04:13:50 +00:00
parent 6b41b901ce
commit 410408cece

View File

@@ -989,10 +989,10 @@ hextonum(char ch_s)
unsigned long unsigned long
rlong(void) rlong(void)
{ {
static unsigned long mix; static unsigned long mix = 0;
static unsigned long counter; static unsigned long counter = 0;
static int fd; static int fd = -1;
struct x_st_timeval tv; struct x_st_timeval tv;
@@ -1001,12 +1001,8 @@ rlong(void)
rval = 0; rval = 0;
fd = -1;
nr = -1; nr = -1;
mix = 0;
counter = 0;
x_i_gettimeofday(&tv, NULL); x_i_gettimeofday(&tv, NULL);
mix ^= (unsigned long)tv.tv_sec mix ^= (unsigned long)tv.tv_sec