[Fix] Removed of a warning on 32bit machines.
This commit is contained in:
parent
82ee8a41a7
commit
d58d3283a4
@ -32,7 +32,7 @@ void rng_init(void) {
|
|||||||
fd = open("/dev/urandom", O_RDONLY); // /dev/urandom is better then time seed.
|
fd = open("/dev/urandom", O_RDONLY); // /dev/urandom is better then time seed.
|
||||||
if(fd != -1) {
|
if(fd != -1) {
|
||||||
i = sizeof(uint32_t)*624;
|
i = sizeof(uint32_t)*624;
|
||||||
if(read(fd, &MT, i) == 1)
|
if(read(fd, &MT, i) == (ssize_t)i)
|
||||||
need_init = 0;
|
need_init = 0;
|
||||||
else
|
else
|
||||||
i = rng_timeEntropy();
|
i = rng_timeEntropy();
|
||||||
|
Loading…
Reference in New Issue
Block a user