Feeding entropy pool with my own data


Let’s state that I have a huge bunch of truly unpredictable random data in file "random.bin". The random data has been created outside of my system and has been securely transfered into my system.

Questions:

  • How could I feed this file to the OS entropy pool so that a subsequent call to /dev/random by my fancy software will not block?
  • Would the command ‘cat random.bin > /dev/random’ makes it?

Notes:

  1. The question is not about the use of /dev/urandom.
  2. Answer must not make use of fancy tool like ‘havege’.
  3. Perfect answer would be Unix flavour independent (so working on AIX, Solaris, RHEL, BSD, …).
  4. It is similar but different than question Feeding /dev/random entropy pool? .