Define getentropy() where necessary.