update writeentropy.c
This commit is contained in:
@@ -43,6 +43,7 @@ static uint32_t readNumberFromFile(char *fileName) {
|
|||||||
void inmWriteEntropyStart(uint32_t bufLen, bool debug) {
|
void inmWriteEntropyStart(uint32_t bufLen, bool debug) {
|
||||||
inmBufLen = bufLen;
|
inmBufLen = bufLen;
|
||||||
inmDebug = debug;
|
inmDebug = debug;
|
||||||
|
|
||||||
//inmDevRandomFD = open("/dev/random", O_WRONLY);
|
//inmDevRandomFD = open("/dev/random", O_WRONLY);
|
||||||
inmDevRandomFD = open("/dev/random", O_RDWR);
|
inmDevRandomFD = open("/dev/random", O_RDWR);
|
||||||
if(inmDevRandomFD < 0) {
|
if(inmDevRandomFD < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user