diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-12-29 00:26:21 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-12-29 00:26:21 -0800 |
commit | 4b772db7b36abc597d17d2c994227b5c032323ae (patch) | |
tree | b5a9dd0346c859a3fe675fea31a4db28599d9bf2 /lisplib.c | |
parent | 9dae5ba49c7595355ddcf336032c2e12aa84be5f (diff) | |
download | txr-4b772db7b36abc597d17d2c994227b5c032323ae.tar.gz txr-4b772db7b36abc597d17d2c994227b5c032323ae.tar.bz2 txr-4b772db7b36abc597d17d2c994227b5c032323ae.zip |
shuffle/nshuffle: take optional random state argument.
* eval.c (eval_init): Register shuffle and nshuffle as
two-argument functions with optional argument.
* lib.c (nshuffle): Take random-state argument, defaulting to
value of random_state special variable.
(shuffle): Take random-state argument, pass down to nshuffle.
* lib.h (shuffle, nshuffle): Declarations updated.
* txr.1: Updated.
Diffstat (limited to 'lisplib.c')
0 files changed, 0 insertions, 0 deletions