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