generate method

List<int> generate()

Generates and returns random entropy as a List<int>.

The length of the generated entropy is determined by the bitlen parameter, and it is converted to bytes (rounded up to the nearest byte).

Implementation

List<int> generate() {
  return QuickCrypto.generateRandom(bitlen ~/ 8);
}