Factor out a bit of UniqueId code.
Factor out a bit of UniqueId code.

Signed-off-by: Chris Larsen <83037b211e1d109d6858769a113e269c3139ffd3@euphoriaaudio.com>

ShefronYudy/opentsdb,alienth/opentsdb,MadDogTechnology/opentsdb,andyflury/opentsdb,eswdd/opentsdb,OpenTSDB/opentsdb,johann8384/opentsdb,OpenTSDB/opentsdb,MadDogTechnology/opentsdb,eswdd/opentsdb,alienth/opentsdb,andyflury/opentsdb,ShefronYudy/opentsdb,MadDogTechnology/opentsdb,johann8384/opentsdb,OpenTSDB/opentsdb