string hash_id = Utilities.GetMd5Hash(DateTime.Now.Ticks.ToString()); hash_id = hash_id.Substring(0,8) + "-" + hash_id.Substring(8, 4) + "-" + hash_id.Substring(12, 4) + "-" + hash_id.Substring(16, 4) + "-" + hash_id.Substring(20, 12);
Select allOpen in new window
function sessionhash:string; var h,b:string; begin h := lowercase(md5string(DateToStr(GetTickCount()))); b := copy(h,0,8)+'-'+copy(h,8,4)+'-'+copy(h,12,4)+'-'+copy(h,16,4)+'-'+copy(h,20,12); result := b; end;
system.environment.tickcou