Skip to content

StableHash Methods

Provides stable hash functions whose results are consistent across processes and cluster nodes.

ComputeHash(ReadOnlySpan<byte>)

static
View source
public static uint ComputeHash(ReadOnlySpan<byte> data)
Computes a hash digest of the input.

Parameters

dataReadOnlySpan<byte>
The input data.

Returns

A hash digest of the input.

ComputeHash(string)

static
View source
public static uint ComputeHash(string data)
Computes a hash digest of the input.

Parameters

datastring
The input data.

Returns

A hash digest of the input.