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.
- 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' (or similar) make it?
- The question is not about which of /dev/random or /dev/urandom should I use. Long story short, I cannot make use of /dev/urandom due to legacy reason.
- Answer must not make use of fancy tool like 'havege'.
- Perfect answer would be Unix flavour independent (so working on AIX, Solaris, RHEL, BSD, ...).
- Shell command is best.
- If Shell command is not possible, which system call?
- It is similar but different than question Feeding /dev/random entropy pool? . The goal is different.