(int count)
| 97 | } |
| 98 | |
| 99 | public static String randomCode(int count) { |
| 100 | StringBuilder sb = new StringBuilder(count); |
| 101 | for (int i = 0; i < count; i++) { |
| 102 | int idx = ThreadLocalRandom.current().nextInt(lower_digits.length); |
| 103 | sb.append(lower_digits[idx]); |
| 104 | } |
| 105 | return sb.toString(); |
| 106 | } |
| 107 | |
| 108 | public static void main(String[] args) throws IOException { |
| 109 | ByteBuffer buffer = ByteBuffer.allocate(16); |