silence unused-result warning in srp.c

This commit is contained in:
F. Duncanh
2024-08-10 13:16:56 -04:00
parent d47bb01cba
commit 9f51a42eb0

View File

@@ -594,9 +594,11 @@ static void init_random()
fp = fopen("/dev/urandom", "r");
if (fp)
{
fread(buff, sizeof(buff), 1, fp);
size_t count = fread(buff, sizeof(buff), 1, fp);
fclose(fp);
g_initialized = 1;
if (count == 1) {
g_initialized = 1;
}
}
#endif
if (g_initialized)