Recently (probably after yum update something), one of my CentOS7 server running Apache2.4.37 has started to produce the following errors.
apachectl configtest
(38)Function not implemented: AH00141: Could not initialize random number generator
htpasswd -c -m ./htpasswd test
htpasswd: Unable to generate random bytes: Function not implemented
Obviously there are some trouble about random number generator, but I have never seen this problem and no idea about it. I've been googling the past few days but could only find a few similar questions unanswered. I confirmed that /dev/random
and /dev/urandam
exist and seem to be functioning.
I saw the source codes of Apache and htpasswd and assumed that apr_generate_random_bytes
function in misc/unix/rand.c under apr is failing. What is possible cause of this?