]> git.lizzy.rs Git - rust.git/commit
auto merge of #6058 : huonw/rust/rt-isaac-update, r=graydon
authorbors <bors@rust-lang.org>
Sat, 27 Apr 2013 04:57:35 +0000 (21:57 -0700)
committerbors <bors@rust-lang.org>
Sat, 27 Apr 2013 04:57:35 +0000 (21:57 -0700)
commit8804b13bd2d7230f65db2c847177969dde9e3936
tree3f53c886cbca97e43fbf32bda921828c99815d0a
parent7c1696b5293370d1ecf563df23b6bb491f17a541
parent1fc8a2f2a45c21247f6d0209ecb6349a2c20e453
auto merge of #6058 : huonw/rust/rt-isaac-update, r=graydon

The "unsigned 4 byte" `ub4`s are actually 8 bytes on 64-bit platforms
which mean that some bits > 2**32 were retained in calculations, these
would then "reappear" after a right shift and so the stream of random numbers
would differ on 32 bit vs 64 bit platforms.

http://burtleburtle.net/bob/c/randport.c