Modified getRandomId method

Modified getRandomId method in my previous PR.  Changed getRandomId
method to getUniqueId.  getRandomId method was a little overkill don't
really need a random Id(Guid) just an unique Id.  The getUniqueId method
is a simpler.