randBits function

Uint8List randBits(
  1. Random generator,
  2. int n
)

Returns at least n random bits.

Implementation

Uint8List randBits(Random generator, int n) =>
    randBytes(generator, (n + 7) ~/ 8);