CryptoSys PKI Pro Manual

Rng.Guid Method

Generate a random 36-character Global Unique IDentifier (GUID) string according to [RFC4122].

Syntax

[C#]
public static string Guid()
[VB]
Public Shared Function Guid As String

Parameters

Return Value

String
String of the form "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" where 'x' is a hexadecimal digit [0-9a-f].

Example

string guid = Rng.Guid();
Console.WriteLine("GUID={0}", guid);
// Example: GUID=14e3d83a-2de2-4fb0-851c-840fbab04cdd

See Also

VB6/C equivalent: RNG_Guid

[Contents] [Index]

[PREV: Rng.BytesWithPrompt(Int32, String, Rng.Strength) Method...]   [Contents]   [Index]   
   [NEXT: Rng.Initialize Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.