nanoid

A tiny, secure, URL-friendly, unique string ID generator for Go
git clone git://git.lair.cx/nanoid
Log | Files | Refs | README

commit a9ba6fa04c2792c10928e28d8157b8bfca337c64
parent 301eb851a2f00812b00d470e98cf014e5ce4d4e2
Author: Yongbin Kim <iam@yongbin.kim>
Date:   Mon,  9 Jan 2023 15:40:39 +0000

benchmark: adjust buffer size (10 ids)

Diffstat:
Mnanoid_test.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nanoid_test.go b/nanoid_test.go @@ -6,7 +6,7 @@ import ( "time" ) -const benchBufLength = 21 * 21 * 7 / 21 +const benchBufLength = 10 var expectedIDs = []NanoID{ {0x2d, 0x69, 0x58, 0x30, 0x55, 0x4a, 0x57, 0x5f, 0x2d, 0x68, 0x5a, 0x67, 0x32, 0x70, 0x4e, 0x36, 0x49, 0x64, 0x54, 0x74, 0x51},