SecureRandom..... to do this (base64 or hex, depending on what you need).