www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18932] New: core.internal.hash.hashOf(val, seed) ignores

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

          Issue ID: 18932
           Summary: core.internal.hash.hashOf(val, seed) ignores `seed`
                    when val is a raw pointer
           Product: D
           Version: D2
          Hardware: x86
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: n8sh.secondary hotmail.com

Currently fails:
unittest
{
    import core.internal.hash : hashOf;
    assert(hashOf(null, 0) != hashOf(null, 123456789));
}

--
Jun 01 2018