Could you please share your opinion whether the following looks OK?
I stumbled across a hang of SecureRandom on Linux in its default
implementation of generateSeed(int). As far as I understand from
reports on the Internet, it is very likely related to /dev/random.
That's why I plan to replace it (in the DTLS-related functionality)
with the source code bellow.
* Employs <tt>ZrtpFortuna</tt> as is common in neomedia. Most
* importantly though, works around a possible hang on Linux
* when reading from <tt>/dev/random</tt>.
public byte generateSeed(int numBytes)
byte seed = new byte[numBytes];
* Employs <tt>ZrtpFortuna</tt> as is common in neomedia.
public void nextBytes(byte bytes)