[Issue 14135] New: std.uuid.randomUUID violates breaks @safety

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Feb 6 15:24:50 PST 2015


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

          Issue ID: 14135
           Summary: std.uuid.randomUUID violates breaks @safety
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: websites
          Assignee: nobody at puremagic.com
          Reporter: code at klickverbot.at

The

@trusted UUID randomUUID(RNG)(ref RNG randomGen)
if(isIntegral!(typeof(RNG.front)))

overload is incorrectly marked as @trusted, as the user might pass a custom RNG
with @system range primitives.

Seems like it was introduced in
https://github.com/D-Programming-Language/phobos/pull/1708.

--


More information about the Digitalmars-d-bugs mailing list