newBootId static method
A random per-process boot id (E3: recycles PIDs never match).
Implementation
static String newBootId() {
final random = Random();
final micros = DateTime.now().toUtc().microsecondsSinceEpoch;
// dart2js: shifts are 32-bit — `1 << 32` == 0, so nextInt(0) would throw
// on web (issue #1074). Spell the bound literally.
return '$micros-${random.nextInt(0xFFFFFFFF).toRadixString(36)}';
}