Rng.fromSeed constructor

Rng.fromSeed(
  1. int seed
)

Implementation

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