www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14135] New: std.uuid.randomUUID violates breaks safety

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 puremagic.com
          Reporter: code 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.

--
Feb 06 2015