예제 #1
0
 public Value128 NextId(StringBuilder id)
 {
     nextIdHash = Hashing.MurmurHash3(id, nextIdHash) ^ nextIdHash;
     return(nextIdHash);
 }
예제 #2
0
 public Value128 NextId(int i)
 {
     nextIdHash = Hashing.MurmurHash3((ulong)i, nextIdHash) ^ nextIdHash;
     return(nextIdHash);
 }
예제 #3
0
 public Value128 NextId(string id = null, [CallerMemberName] string callerMemberName = null)
 {
     nextIdHash = Hashing.MurmurHash3(id ?? $"{callerMemberName}{_count++}", nextIdHash) ^ nextIdHash;
     return(nextIdHash);
 }