[Issue 16259] New: entropy in std.numeric fails in release unittest

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jul 9 17:50:29 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16259

          Issue ID: 16259
           Summary: entropy in std.numeric fails in release unittest
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: greensunny12 at gmail.com

Just run 

```
make std.numeric.test
```

in an up-to-date Phobos clone, it will fail due to entropy returning -nan.

Funnily adding `writeln(e)` in the foreach solves the problem.

--


More information about the Digitalmars-d-bugs mailing list