Added in SecureRandom fix code from http://android-developers.blogspot.co.uk/2013/08/some-securerandom-thoughts.html