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.