adjusting identation style
use secure random to generate guest keys