2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00
This commit is contained in:
2025-02-28 15:23:43 +03:00
parent 87c27df7eb
commit 47272f5463
3 changed files with 107 additions and 6 deletions

View File

@ -167,6 +167,9 @@ public class TypeTemplate
var tn = Encoding.UTF8.GetBytes(GetTypeClassName(type));
var hash = SHA256.Create().ComputeHash(tn).Clip(0, 16);
hash[6] = (byte)((hash[6] & 0xF) | 0x80);
hash[8] = (byte)((hash[8] & 0xF) | 0x80);
var rt = new Guid(hash);
return rt;
}