The getrandom() call should be used if it&#x27;s available, and &#x2F;dev&#x2F;urandom on legacy systems. The system call blocks once when the system starts until the RNG is initialized with enough entropy, and then never again.