Generate random UDID

1.1k Views Asked by At

Find this string in HTTP POST request.

<UDID>92b690dd7d6c90e10eb3540edf2eedc8b075b8fd</UDID>

How can I generate random UDIDs in this format in C#?

1

There are 1 best solutions below

6
João Paulo Amorim On

You could use the code

       var xpto = Guid.NewGuid().ToString("N");

It gives you a GUID without hyphens, what I think should do what you want.