Fixed SecureRandom PRNG problem.

Solution copied from
http://android-developers.blogspot.de/2013/08/some-securerandom-thoughts.html
Sometimes /dev/urandom is not writable.

Copied again from http://android-developers.blogspot.de/2013/08/some-securerandom-thoughts.html