Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/crypto/SecureRandomFix.java @ 347:bb7d8a7babbe
compensate for SecureRandom bug on older devices
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 31 Jul 2014 18:57:57 -0700 |
parents | d6ab7b606a50 |
children |
comparison
equal
deleted
inserted
replaced
346:d6ab7b606a50 | 347:bb7d8a7babbe |
---|---|
12 import java.io.IOException; | 12 import java.io.IOException; |
13 import java.io.UnsupportedEncodingException; | 13 import java.io.UnsupportedEncodingException; |
14 import java.security.SecureRandom; | 14 import java.security.SecureRandom; |
15 | 15 |
16 | 16 |
17 class SecureRandomFix extends SecureRandom { | 17 public class SecureRandomFix extends SecureRandom { |
18 | 18 |
19 // http://android-developers.blogspot.com/2013/08/some-securerandom-thoughts.html | 19 // http://android-developers.blogspot.com/2013/08/some-securerandom-thoughts.html |
20 | 20 |
21 private static final int VERSION_CODE_JELLY_BEAN_MR2 = 18; | 21 private static final int VERSION_CODE_JELLY_BEAN_MR2 = 18; |
22 private static final byte[] BUILD_FINGERPRINT_AND_DEVICE_SERIAL = | 22 private static final byte[] BUILD_FINGERPRINT_AND_DEVICE_SERIAL = |