cuid static method
Implementation
static String cuid() {
String ts = DateTime.now().millisecondsSinceEpoch.toRadixString(36).padLeft(8, '0');
_cuidCounter = (_cuidCounter + 1) % 1679616;
String count = _cuidCounter.toRadixString(36).padLeft(4, '0');
final rand = math.Random();
String randomPart = rand.nextInt(1679616).toRadixString(36).padLeft(4, '0');
String fingerprint = (identityHashCode(Random) ^ identityHashCode(rand))
.toRadixString(36)
.padLeft(4, '0');
return 'c$ts$count$randomPart$fingerprint';
}