Browse Source

Output the entropy hints as info

pull/1394/head
Max Lv 7 years ago
parent
commit
7101086d47
1 changed files with 1 additions and 1 deletions
  1. 2
      src/crypto.c

2
src/crypto.c

@ -115,7 +115,7 @@ entropy_check(void)
if ((fd = open("/dev/random", O_RDONLY)) != -1) { if ((fd = open("/dev/random", O_RDONLY)) != -1) {
if (ioctl(fd, RNDGETENTCNT, &c) == 0 && c < 160) { if (ioctl(fd, RNDGETENTCNT, &c) == 0 && c < 160) {
LOGE("This system doesn't provide enough entropy to quickly generate high-quality random numbers\n"
LOGI("This system doesn't provide enough entropy to quickly generate high-quality random numbers\n"
"Installing the rng-utils/rng-tools or haveged packages may help.\n" "Installing the rng-utils/rng-tools or haveged packages may help.\n"
"On virtualized Linux environments, also consider using virtio-rng.\n" "On virtualized Linux environments, also consider using virtio-rng.\n"
"The service will not start until enough entropy has been collected."); "The service will not start until enough entropy has been collected.");

Loading…
Cancel
Save