Nanoid C++
A tiny, URL-friendly, unique string ID generator for C++, implementation of ai's nanoid.
This C++ project was developed for the purpose of providing variable-length unique identifiers for entities in custom game engines and client applications.
Can be Safe. It uses mt19937, a strong random generator with a seed from random_device by default, which is not cryptographically secure. However, the library can be expanded using an algorithm of choice (from OpenSSL, Crypto++, Botan, LibCrypto) using the API.
Compact. It uses more symbols than UUID (A-Za-z0-9_-) and has the same number of unique options in just 22 symbols instead of 36.
Fast. Nanoid is as fast as UUID but can be used in URLs.