summaryrefslogtreecommitdiffstats
path: root/rand.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-08-26 07:25:17 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-08-26 07:25:17 -0700
commit803b85910b51fdfa04bece1f008e6af6c2e1ff51 (patch)
treefeaf66a3ac7d423230e01e9711ce43c7946a6dcc /rand.h
parent821144757386da5178193874a2df7feaf940f1a8 (diff)
downloadtxr-803b85910b51fdfa04bece1f008e6af6c2e1ff51.tar.gz
txr-803b85910b51fdfa04bece1f008e6af6c2e1ff51.tar.bz2
txr-803b85910b51fdfa04bece1f008e6af6c2e1ff51.zip
rand: provide random-buf function.
* rand.c (random_buf): New function. (rand-init): random-buf intrinsic registered. * rand.h (random_buf): Declared. * txr.1: Documented. * stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'rand.h')
-rw-r--r--rand.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rand.h b/rand.h
index a739554d..e04069f7 100644
--- a/rand.h
+++ b/rand.h
@@ -35,5 +35,6 @@ val random_state_p(val obj);
val random_fixnum(val state);
val random(val state, val modulus);
val rnd(val modulus, val state);
+val random_buf(val size, val state);
void rand_compat_fixup(int compat_ver);
void rand_init(void);