@textile/hub > ThreadID > fromRandom
ThreadID.fromRandom() method
fromRandom creates a new random ID object.
Signature:
static fromRandom(variant?: Variant, size?: number): ThreadID;
Parameters
Parameter | Type | Description |
---|---|---|
variant | Variant | The Thread variant to use. |
size | number | The size of the random component to use. Defaults to 32 bytes. |
Returns: