low-level RNG interfaces deal in scm_t_uint32, not unsigned long
authorAndy Wingo <wingo@pobox.com>
Thu, 22 Jul 2010 19:26:19 +0000 (21:26 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 26 Jul 2010 13:01:02 +0000 (15:01 +0200)
commitb606ff6af9c9ec7fc3c4473c09ce1e95c18f024a
tree963d7a600564ccbc6f7bf84fb184c187042f2c78
parent4ca48269976e17b2530728cce7df63843a6ce2b0
low-level RNG interfaces deal in scm_t_uint32, not unsigned long

* libguile/random.h (scm_t_rng): random_bits returns a scm_t_uint32.
  (scm_i_uniform32, scm_t_i_rstate): Internal RNG returns a
  scm_t_uint32, as advertised, instead of unsigned long.
  (scm_c_random): Return a scm_t_uint32 instead of an unsigned long.

* libguile/random.c (scm_i_uniform32, scm_i_init_rstate_scm):
  (scm_i_expose_rstate, scm_c_random, scm_c_random_bignum, scm_random)
  (scm_init_random): Adapt types to match implementation.
libguile/random.c
libguile/random.h