Skip to content

🌈 A tiny, URL-friendly unique string ID generator for D

License

Notifications You must be signed in to change notification settings

AntonMeep/nanoid-d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nanoid.d Page on DUBLicenseBuild Status TravisCI

nanoid.d is a tiny, URL-friendly unique string ID generator for D, developed as a D rewrite of nanoid for JavaScript.

Safe: (nope) nanoid.d is safe if you use a cryptographically strong random API, but Random from std.random is used by default.

Small: 2 lines of code. Yep, only 2 of them. std.random provides a function to choose random elements from an array, which has a proper distribution of symbols. It can be done in 1 line, but, you know, optimizations are very important.

Fast: nanoid() returns a lazy range, which means that everything is computed only when needed.

About

🌈 A tiny, URL-friendly unique string ID generator for D

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages