std.rand: Refactor `Random` interface

These changes have been made to resolve issue #10037. The `Random`
interface was implemented in such a way that causes significant slowdown
when calling the `fill` function of the rng used.

The `Random` interface is no longer stored in a field of the rng, and is
instead returned by the child function `random()` of the rng. This
avoids the performance issues caused by the interface.
c1a5ff34f3Ominitay committed on 10/27/2021, 8:07:48 PM· committed by Andrew Kelleyparent9024f27
18 files changedLine totals unavailable