Esempio n. 1
0
 public static Guid NewGuid(System.IO.FileInfo file)
 {
     using (var stream = new System.IO.FileStream(file.FullName, System.IO.FileMode.Open, System.IO.FileAccess.Read))
     {
         return(NewGuid(MurmurHash3.ComputeHash128(stream)));
     }
 }
Esempio n. 2
0
 public static Guid NewGuid(byte[] data)
 {
     return(new Guid(MurmurHash3.ComputeHash128(data)));
 }
Esempio n. 3
0
 public static Guid NewGuid(System.IO.Stream stream)
 {
     return(NewGuid(MurmurHash3.ComputeHash128(stream)));
 }