Add missing method genRange for StdGen (fixes #794)
authorsimonpj@microsoft <unknown>
Fri, 7 Jul 2006 15:19:01 +0000 (15:19 +0000)
committersimonpj@microsoft <unknown>
Fri, 7 Jul 2006 15:19:01 +0000 (15:19 +0000)
commit7d423cd34e29881e09b5bc3aa6b1eb8ca8346a46
tree24e9e6b5db0ec32eec8459715cf42ed86f3c2738
parentb9b6e38a1ebb5f05b382609fe0776d91cdd1090b
Add missing method genRange for StdGen (fixes #794)

MERGE TO STABLE

Trac #794 reports (correctly) that the implementation of StdGen
only returns numbers in the range (0..something) rather than
(minBound, maxBound), which is what StdGen's genRange claims.

This commit fixes the problem, by implementing genRange for StdGen
(previously it just used the default method).
System/Random.hs