diff options
author | Mark H Weaver <mhw@netris.org> | 2012-01-18 02:36:17 -0500 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2012-01-21 03:22:57 -0500 |
commit | d47db067b63089880e2e202d5a33fd7fe5e41dbe (patch) | |
tree | 4942484bcfdc3a877cca2ea9e294d399ed6fc2fc /libguile/random.h | |
parent | 925172cf529a89f0c5fd81720718971f9059fcfd (diff) | |
download | guile-d47db067b63089880e2e202d5a33fd7fe5e41dbe.tar.gz |
Add `random-state-from-platform' and `scm_i_random_bytes_from_platform'
* libguile/random.c (scm_random_state_from_platform): New procedure.
(scm_i_random_bytes_from_platform): New internal function.
* libguile/random.h (scm_random_state_from_platform,
scm_i_random_bytes_from_platform): Add prototypes.
* doc/ref/api-data.texi (Random): Add documentation.
Diffstat (limited to 'libguile/random.h')
-rw-r--r-- | libguile/random.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libguile/random.h b/libguile/random.h index 2f1f0f69a..109969e01 100644 --- a/libguile/random.h +++ b/libguile/random.h @@ -86,6 +86,7 @@ SCM_API SCM scm_copy_random_state (SCM state); SCM_API SCM scm_seed_to_random_state (SCM seed); SCM_API SCM scm_datum_to_random_state (SCM datum); SCM_API SCM scm_random_state_to_datum (SCM state); +SCM_API SCM scm_random_state_from_platform (void); SCM_API SCM scm_random_uniform (SCM state); SCM_API SCM scm_random_solid_sphere_x (SCM v, SCM state); SCM_API SCM scm_random_hollow_sphere_x (SCM v, SCM state); @@ -94,6 +95,8 @@ SCM_API SCM scm_random_normal_vector_x (SCM v, SCM state); SCM_API SCM scm_random_exp (SCM state); SCM_INTERNAL void scm_init_random (void); +SCM_INTERNAL void scm_i_random_bytes_from_platform (unsigned char *buf, size_t len); + #endif /* SCM_RANDOM_H */ /* |