Page MenuHomeDevCentral

Generate n characters string from m bits
Closed, ResolvedPublic

Description

In rKOT Random class, could we implement a method to generate an bits array with some arbitrary length (or a bytes array, if it eases convert), and another one to use the first then converting that in an ASCII string (Base64 could be a nice way)?

Reference and idea:
https://neilmadden.blog/2018/08/30/moving-away-from-uuids/

That will allow to migrate to more compact identifiers than uuid, and get an arbitrary amount of bytes instead of the uuid 16.