fillNonce method
Implementation
void fillNonce(int index) {
if (index >= 0 && index < nonces.length) {
Uint8List nonce = Uint8List(16);
nonce.buffer.asInt32List()[0] = index;
nonce[4] = complexity;
var rnd = Random();
for (var i = 5; i < 16; i++) {
nonce[i] = rnd.nextInt(255);
}
nonces[index] = nonce;
}
}