SecureRandom sr = new SecureRandom(); byte[] bytes = new byte[8]; bytes = sr.generateSeed(8); System.out.println(new String(Hex.encode(bytes)));
时间: 2024-11-08 04:28:02
SecureRandom sr = new SecureRandom(); byte[] bytes = new byte[8]; bytes = sr.generateSeed(8); System.out.println(new String(Hex.encode(bytes)));