Add @nogc nothrow to randomUUID

This commit is contained in:
Dennis Korpel 2024-04-17 10:59:07 +02:00 committed by The Dlang Bot
parent 2fd8aae438
commit 80235ea056

View file

@ -1207,7 +1207,7 @@ public struct UUID
* randomGen = uniform RNG * randomGen = uniform RNG
* See_Also: $(REF isUniformRNG, std,random) * See_Also: $(REF isUniformRNG, std,random)
*/ */
@safe UUID randomUUID() @nogc nothrow @safe UUID randomUUID()
{ {
import std.random : rndGen; import std.random : rndGen;
// A PRNG with fewer than `n` bytes of state cannot produce // A PRNG with fewer than `n` bytes of state cannot produce