exampleSecureRandom function
SecureRandom
exampleSecureRandom()
Implementation
SecureRandom exampleSecureRandom() {
final _sGen = Random.secure();
var n = BigInt.from(1);
var ran = SecureRandom('Fortuna');
ran.seed(KeyParameter(
Uint8List.fromList(List.generate(32, (_) => _sGen.nextInt(255)))));
return ran;
}