Class Random.Interface
- Description
This class implements the Pike
random
API on top of a byte stream random source. This source should be implemented in the random_string method and will be called by random(int) for random input. random(int) is in turned called by all the other variants of random and applied to their use cases.While it is possible to overload the random variants, care must be taken to not introduce any bias. The default implementation gathers enough bits to completely reach the limit value, and discards them if the result overshoots the limit.
- Inherit RandomInterface
inherit
Builtin.RandomInterface
: RandomInterface