go-nanoid icon indicating copy to clipboard operation
go-nanoid copied to clipboard

Generate is stuck indefinitely for size=1

Open pastx opened this issue 9 months ago • 8 comments

I might have missed something from the usage docs, but generating a random id of size 1 doesn't work. prefix, err := nanoid.Generate(prefixAlphabet, 1) never finishes.

Context: I want to generate a longer ID with the first character being from a different alphabet.

pastx avatar May 02 '24 08:05 pastx