Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateRandom()

static unsafe ActivitySpanId System.Diagnostics.ActivitySpanId.CreateRandom ( )
inlinestatic

Definition at line 17 of file ActivitySpanId.cs.

18 {
19 Unsafe.SkipInit(out ulong num);
20 ActivityTraceId.SetToRandomBytes(new Span<byte>(&num, 8));
21 return new ActivitySpanId(System.HexConverter.ToString(new ReadOnlySpan<byte>(&num, 8), System.HexConverter.Casing.Lower));
22 }
static unsafe string ToString(ReadOnlySpan< byte > bytes, Casing casing=Casing.Upper)

References System.Diagnostics.ActivitySpanId.ActivitySpanId(), System.Diagnostics.ActivityTraceId.SetToRandomBytes(), and System.HexConverter.ToString().

Referenced by System.Diagnostics.ActivitySpanId.ActivitySpanId(), and System.Diagnostics.Activity.GenerateW3CId().