[Haskell-cafe] Optimization flag changing result of code execution

Aleksey Khudyakov alexey.skladnoy at gmail.com
Wed Jul 17 10:19:29 CEST 2013


On 10 July 2013 14:10, kudah <kudahkukarek at gmail.com> wrote:
> Yes, it does. Without optimizations the result is
> "ndgorsfesnywaiqraloa", while with optimizations the result is always
> "aaaaaaaaaabbaaaaaaaa".
>
Sorry for taking so long. So problem is uniformR. You can reproduce bug
reliably and I cannot. Are you on 32-bit system? I only tested on 64-bit ones.
If this isn't the case I'm out of ideas.

I finally wrote test case that doesn't depends on anything besides
mwc-random (it's
in attachment). Could you check whether it still triggers the bug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testcase.hs
Type: application/octet-stream
Size: 575 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130717/9c7ca7fe/attachment.obj>


More information about the Haskell-Cafe mailing list