PRNG fixes and AuthenticationContext update for that

Default cache uses encryption. Android has an issue with SecureRandom and this fix is needed.