function guid()local seed={ 'e','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'}local tb={}for i=1,32 dotable.insert(tb,seed[math.random(1,16)])endlocal sid=table.concat(tb)return string.format('%s-%s-%s-%s-%s',string.sub(sid,1,8),string.sub(sid,9,12),string.sub(sid,13,16),string.sub(sid,17,20),string.sub(sid,21,32)) endlocal s=0 local start_time=os.clock() while s<50000 dos=s+1print(s,guid()) end print('execute_time='..tostring(os.clock()-start_time))