mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 12:20:20 +02:00
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.
This commit is contained in:
parent
925172cf52
commit
d47db067b6
3 changed files with 117 additions and 19 deletions
|
@ -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 */
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue