summaryrefslogtreecommitdiff
path: root/libguile/posix.c
diff options
context:
space:
mode:
authorAndreas Rottmann <a.rottmann@gmx.at>2010-07-19 22:40:56 +0200
committerAndy Wingo <wingo@pobox.com>2010-07-19 22:40:56 +0200
commit442eaa681b0c2db4254d4903f8a0996b4ffc83d0 (patch)
treed28496035ffbc5e179218cad7a82f7783be00459 /libguile/posix.c
parentd68a81e038597ba3d47f39b4cd8a5864953dc1d5 (diff)
downloadguile-442eaa681b0c2db4254d4903f8a0996b4ffc83d0.tar.gz
Fix random number generator on 64-bit platforms
* libguile/random.c (scm_c_random): On platforms where `unsigned long' has 64 bit, generate up to 64 bit of randomness. This is expected by scm_c_random_bignum(), and hence was a serious distortion of the random value distribution for values exceeding 2^32. This change also fixes a crash when the `m' argument is a value above 2^32.
Diffstat (limited to 'libguile/posix.c')
0 files changed, 0 insertions, 0 deletions