randomFeedSeed static method
A fresh random feed seed (Random.secure; never used for generation
itself, only to pick where this install's feed starts).
Implementation
static int randomFeedSeed() {
int raw;
try {
raw = Random.secure().nextInt(0xFFFFFFFF);
} on Object {
// Some JS hosts (e.g. Node test runners) have no usable crypto source.
raw =
fmix32(DateTime.now().microsecondsSinceEpoch & 0xFFFFFFFF) %
0xFFFFFFFF;
}
return raw + 1;
}