Handbook
Glossary
with-secure-random ( quot -- )
Generating random integers
Prev:
with-system-random ( quot -- )
Next:
Random protocol
Vocabulary
random
Inputs
quot
a
quotation
Outputs
None
Word description
Calls the quotation with the secure random number generator in a dynamic variable. All random numbers will be generated using this random number generator.
See also
with-random
,
with-system-random
Definition
USING:
kernel
namespaces
;
IN:
random
:
with-secure-random
( quot -- )
secure-random-generator
get
swap
with-random
;
inline