|
Re: [GHC] #794: System.Random: StdGen's genRange doesn't match its next: msg#00031lang.haskell.glasgow.bugs
#794: System.Random: StdGen's genRange doesn't match its next -----------------------------------+---------------------------------------- Reporter: rturk@xxxxxxxxxxxxxx | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: libraries/base | Version: 6.4.2 Severity: normal | Resolution: fixed Keywords: | Os: Unknown Difficulty: Easy (1 hr) | Architecture: Unknown -----------------------------------+---------------------------------------- Changes (by simonpj): * resolution: => fixed * status: new => closed Comment: Good point. Rather than try to make {{{Random.stdNext}}} return numbers in the full range (which is dodgy, because stdNext is carefully crafted code), I changed the {{{genRange}}} method of {{{Random StdGen}}} to return the range that {{{stdNext}}} actually delivers. The documentation only guarantees a 30-bit range, which is still the case. Simon -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/794> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler_______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@xxxxxxxxxxx http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [GHC] #817: internal error: stg_ap_ppp_ret, GHC |
|---|---|
| Next by Date: | [GHC] #818: Uncaught kind error leads to the 'impossible' happening, GHC |
| Previous by Thread: | [GHC] #817: internal error: stg_ap_ppp_ret, GHC |
| Next by Thread: | [GHC] #818: Uncaught kind error leads to the 'impossible' happening, GHC |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |