xRandomness method

  1. @override
void xRandomness(
  1. Uint8List target
)
override

Fill the target with random bytes.

Safety warning: Target may be a direct view over native memory that must not be used after this function returns.

Implementation

@override
void xRandomness(Uint8List target) {
  for (var i = 0; i < target.length; i++) {
    target[i] = random.nextInt(1 << 8);
  }
}