Replace getrandom() with getentropy()