I don't understand, i see in the code :
SecureRandom.getInstance("SHA1PRNG")
but when i read https://android-developers.googleblog.com/2016/06/security-crypto-provider-deprecated-in.html
They say SHA1PRNG algorithm is not cryptographically strong and have been deprecated !