ident: system identifier generator

This is pretty fast and guarantees uniqueness when initialised correctly.

Signed-off-by: Yonah <contrib@gensokyo.uk>
This commit is contained in:
2026-03-22 22:22:04 +09:00
parent 22b8cc3884
commit 338cb1e000
5 changed files with 81 additions and 14 deletions

View File

@@ -34,8 +34,10 @@ func TestS(t *testing.T) {
), ident.ErrNewline},
{"valid", ident.S{
Site: ident.TrivialSite,
Host: ident.TrivialHost,
PartG: ident.PartG{
Site: ident.TrivialSite,
Host: ident.TrivialHost,
},
Time: uint64(time.Date(
0xfd, 7, 15,