avutil/random_seed: turn off buffering when reading from random
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
153cf85b24
commit
9a7f060c32
@ -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…
x
Reference in New Issue
Block a user