private byte [ ] generateRandomBytes ( int nBytes , Random random ) { byte [ ] randomBytes = new byte [ nBytes ] ; random . nextBytes ( randomBytes ) ; return randomBytes ; }
Generates a number of random bytes .