UUID proof text should make random strings using hex digits

pull/14/head
Sam Bosley 12 years ago
parent 06f519f231
commit 7175865a12

@ -43,8 +43,11 @@ public class UUIDHelper {
long uuid = 0; long uuid = 0;
String proofText = ""; //$NON-NLS-1$ String proofText = ""; //$NON-NLS-1$
do { do {
byte[] chars = new byte[40]; String hexDigits = "0123456789abcdef"; //$NON-NLS-1$
RANDOM.nextBytes(chars); char[] chars = new char[80];
for (int i = 0; i < chars.length; i++) {
chars[i] = hexDigits.charAt(RANDOM.nextInt(hexDigits.length()));
}
String s = new String(chars); String s = new String(chars);
String d = getDeviceId(); String d = getDeviceId();

Loading…
Cancel
Save