Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Random random = new Random();
- byte[] bytes = new byte[16];
- random.nextBytes(bytes);
- uid = Base64.encodeBase64String(bytes).substring(0, 16);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement