From 7df4178db81cf05e81921117a37371e54b9433b7 Mon Sep 17 00:00:00 2001 From: Syrone Wong Date: Mon, 13 Nov 2017 08:21:51 +0800 Subject: [PATCH] update entropy info based on libsodium documentation --- src/crypto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crypto.c b/src/crypto.c index d445f343..d27b04dd 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -115,10 +115,10 @@ entropy_check(void) if ((fd = open("/dev/random", O_RDONLY)) != -1) { if (ioctl(fd, RNDGETENTCNT, &c) == 0 && c < 160) { - 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" + LOGI("This system doesn't provide enough entropy to quickly generate high-quality random numbers.\n" + "Installing the rng-utils/rng-tools, jitterentropy or haveged packages may help.\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.\n"); } close(fd); }