Switched hashes to 32-bit integers to avoid problems seeding Numpy's RNG

On 32-bit architectures, 64-bit integers (Python longs) would
occasionally cause problems when seeding Numpy's RandomState objects
(outstanding bug in the RNG implementation).