How can I create an array of 20 random bytes in Java?
Try the Random.nextBytes method:
Random.nextBytes
byte[] b = new byte[20]; new Random().nextBytes(b);
1.4m articles
1.4m replys
5 comments
56.9k users