HashHelper.GenerateNumericCode Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

GenerateNumericCode(int)

Generates a cryptographically strong sequence of random digits.

public static string GenerateNumericCode(int digits = 6)

Parameters

digits
int

The number of digits to return (max 18).

Returns

string

A sequence of random digits.