Creates an instance based on generator with optional seed value.
generator
seed
factory HashlibRandom(RNG generator, {int? seed}) => HashlibRandom.custom(generator.build(seed));