Example #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)));
     }
 }
Example #2
0
 public static Guid NewGuid(byte[] data)
 {
     return(new Guid(MurmurHash3.ComputeHash128(data)));
 }
Example #3
0
 public static Guid NewGuid(System.IO.Stream stream)
 {
     return(NewGuid(MurmurHash3.ComputeHash128(stream)));
 }