Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/crypto/SecureRandomFix.java @ 346:d6ab7b606a50
compensate for SecureRandom bug on older devices
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 31 Jul 2014 18:51:21 -0700 |
parents | 663637117cf8 |
children | bb7d8a7babbe |
comparison
equal
deleted
inserted
replaced
345:663637117cf8 | 346:d6ab7b606a50 |
---|---|
2 // Copyright (C) 2014 by 510 Software Group | 2 // Copyright (C) 2014 by 510 Software Group |
3 // licensed under the GPLv3 or later | 3 // licensed under the GPLv3 or later |
4 | 4 |
5 package ch.ethz.ssh2.crypto; | 5 package ch.ethz.ssh2.crypto; |
6 | 6 |
7 import android.os.Build; | |
8 import android.os.Process; | |
9 | |
10 import java.io.ByteArrayOutputStream; | |
11 import java.io.DataOutputStream; | |
12 import java.io.IOException; | |
13 import java.io.UnsupportedEncodingException; | |
7 import java.security.SecureRandom; | 14 import java.security.SecureRandom; |
8 | 15 |
9 | 16 |
10 class SecureRandomFix extends SecureRandom { | 17 class SecureRandomFix extends SecureRandom { |
11 | 18 |