factor out the uuidtools to prepare for SecureRandom
Use securerandom for UUID generation