(Optional) Haveged Service Startup

  1. Check whether the haveged service is enabled in the system. (You are advised to keep the haveged service enabled.)
    systemctl status haveged.service

    or

    ps -ef | grep "haveged" | grep -v "grep"
  2. Start the haveged service and make it start with the system. Ensure that the haveged service is always started.
    systemctl start haveged.service
    systemctl enable haveged.service
  3. Check the speed at which random numbers are displayed on the screen.
    cat /dev/random | od -x

    View the current entropy.

    cat /proc/sys/kernel/random/entropy_avail

    In normal cases, the entropy before haveged is started is over 100. After haveged is started, the entropy increases to more than 1,000 or even 2,000.