Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp core library.guid.newguid

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-core-library > Guid > newGuid

Guid.newGuid() method

Returns a new Guid instance with a pseudo-randomly generated GUID, according to the version 4 UUID algorithm from RFC 4122.

Signature:

static newGuid(randomNumberGenerator?: IRandomNumberGenerator): Guid;

Parameters

Parameter Type Description
randomNumberGenerator IRandomNumberGenerator

Returns:

Guid

A new unique Guid object

Clone this wiki locally