avutil/random_seed: turn off buffering when reading from random

Signed-off-by: Marton Balint <cus@passwd.hu>
pull/389/head
Marton Balint 2 years ago
parent 153cf85b24
commit 9a7f060c32
  1. 1
      libavutil/random_seed.c

@ -59,6 +59,7 @@ static int read_random(uint8_t *dst, size_t len, const char *file)
if (!fp)
return AVERROR_UNKNOWN;
setvbuf(fp, NULL, _IONBF, 0);
err = fread(dst, 1, len, fp);
fclose(fp);

Loading…
Cancel
Save