mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-30 13:13:44 +00:00
Output the entropy hints as info
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ entropy_check(void)
|
||||
|
||||
if ((fd = open("/dev/random", O_RDONLY)) != -1) {
|
||||
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"
|
||||
"On virtualized Linux environments, also consider using virtio-rng.\n"
|
||||
"The service will not start until enough entropy has been collected.");
|
||||
|
||||
Reference in New Issue
Block a user