Editar

Compartilhar via


StringExtensions.GetDjb2HashCode(String) Method

Definition

Gets a content hash from the input String instance using the Djb2 algorithm. For more info, see the documentation for GetDjb2HashCode<T>(ReadOnlySpan<T>).

public static int GetDjb2HashCode (this string text);
static member GetDjb2HashCode : string -> int
<Extension()>
Public Function GetDjb2HashCode (text As String) As Integer

Parameters

text
String

The source String to enumerate.

Returns

The Djb2 value for the input String instance.

Remarks

The Djb2 hash is fully deterministic and with no random components.

Applies to