public static TUniqueID generate() { byte[] id = Guid.NewGuid().ToByteArray(); TUniqueID uid = new TUniqueID(); uid.first = BitConverter.ToUInt64(id, 0); uid.second = BitConverter.ToUInt64(id, 8); return(uid); }
public static TUniqueID generate() { byte[] id = Guid.NewGuid().ToByteArray(); TUniqueID uid = new TUniqueID(); uid.first= BitConverter.ToUInt64(id, 0); uid.second = BitConverter.ToUInt64(id, 8); return uid; }