Fixed the functions for getting a random sguid.