Currently, I'm looking for a way to increase the quality of randomness in my Android
application (a card game). Previously, it was estimated that for my situation (52! permutation) at least 226 bits of entropy (226 random bits) are needed..
I'm planning to use this byte[]
as a seed for SecureRandom
:
SecureRandom random = new SecureRandom();
random.setSeed(/* insert seed here, byte[] */)
The question is -- Where can I reliably get random bits in this amount (at least 226 bits) on Android
, preferably without requiring any permissions and without internet. Also, it should work regardless of device and API level.