urandom-seed: fixes build on kernel 4.x

Fixes: #665
This commit is contained in:
AmadeusGhost 2022-04-07 23:40:02 +08:00
parent f05086ac09
commit f1d985c175

View File

@ -21,6 +21,10 @@
#include <stdio.h>
#include <stdlib.h>
#ifndef GRND_INSECURE
#define GRND_INSECURE 0x0004
#endif
#define SEED_DIR "/etc/seedrng"
#define CREDITABLE_SEED SEED_DIR "/seed.credit"
#define NON_CREDITABLE_SEED SEED_DIR "/seed.no-credit"