Initial commit.

This commit is contained in:
jdl
2026-06-14 16:35:50 +02:00
parent b66c2310ed
commit 446ad38346
4 changed files with 76 additions and 1 deletions

19
idgen_test.go Normal file
View File

@@ -0,0 +1,19 @@
package idgen
import (
"log"
"testing"
)
func BenchmarkNext(b *testing.B) {
for i := 0; i < b.N; i++ {
NextID(0)
}
}
func TestNextID(t *testing.T) {
id := NextID(32)
a, b, c := SplitID(id)
log.Print(a, b, c)
}