@@ -0,0 +1,817 @@
+'''%0AUsed to generate variable data such as random strings and ids%0A'''%0A# Import python libs%0Aimport os%0Aimport time%0Aimport random%0Aimport struct%0Aimport binascii%0Aimport datetime%0A%0A# create a standard epoch so all platforms will count ids from%0A# a standard epoch of jan 1 2014%0ASTD_EPOCH = time.mktime(datetime.datetime(2014, 1, 1).timetuple()) * 1000000%0A%0A%0Adef rand_hex_str(size):%0A    '''%0A    Return a random string of the passed size using hex encoding%0A    '''%0A    return binascii.hexlify(os.urandom(size/2))%0A%0A%0Adef rand_raw_str(size):%0A    '''%0A    Return a raw byte string of the given size%0A    '''%0A    return os.urandom(size)%0A%0A%0Adef gen_id():%0A    '''%0A    Return a revision based on timestamp%0A    '''%0A    r_time = time.time() * 1000000 - STD_EPOCH%0A    return struct.pack('%3EHQ', random.randint(0, 65535), r_time).encode('hex')%0A

create rand utils, we want empty inits