diff options
author | Mark H Weaver <mhw@netris.org> | 2018-10-19 21:54:34 -0400 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2019-05-23 17:11:40 +0200 |
commit | 4e24cca595f2fa8e803333da8bb00df60ba0e501 (patch) | |
tree | 505bcbfe809ff83edac99fed698b47d5533943ad /doc/ref/srfi-modules.texi | |
parent | dcf8389a5a275cda10f693484883f15176e5561d (diff) | |
download | guile-4e24cca595f2fa8e803333da8bb00df60ba0e501.tar.gz |
scm_seed_to_random_state: Support wide string arguments.
Partially fixes <https://bugs.gnu.org/33044>.
Reported by Tom de Vries <tdevries@suse.de>.
* libguile/random.c (scm_seed_to_random_state): Use 'scm_to_utf8_string'
(or 'scm_to_latin1_string' for a narrow string, for compatibility) to
convert the string into raw bytes for use by 'scm_c_make_rstate'. Make
sure the length in bytes fits within an 'int'.
Diffstat (limited to 'doc/ref/srfi-modules.texi')
0 files changed, 0 insertions, 0 deletions