HashlibRandom constructor

HashlibRandom(
  1. RNG generator, {
  2. int? seed,
})

Creates an instance based on generator with optional seed value.

Implementation

factory HashlibRandom(RNG generator, {int? seed}) =>
    HashlibRandom.custom(generator.build(seed));