Use uuid for key generation

Use the built in SecureRandom.uuid method instead of
having a separate RandomKey class to generate keys.