Skip to content

Let the caller choose the random number generator. #8

@elementh

Description

@elementh

Functions and methods that use random numbers should probably have a signature like fn pick_brightness<R: Rng>(&self, rng: &mut R, ...) and then it should call rng.gen_range.

It should provide convenience methods that use some default so specifying a Rng doesn't becomes mandatory.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions