Rng.fromSeed constructor

Rng.fromSeed(
  1. int seed
)

Implementation

factory Rng.fromSeed(int seed) {
  final p = calloc<cvg.RNG>();
  cvRun(() => ccore.cv_RNG_create_1(seed, p));
  final rng = Rng._(p);
  return rng;
}