tweaking logic to use SecureRandom instead of UUID