Name

hash — returns a non-cryptographic integer hash of its argument

Synopsis

integer hash( in val any);
 

Description

hash computes a fast, non-cryptographic integer hash of the in-memory representation of its argument. The same input value always yields the same hash within a given Virtuoso build, but the hash is not guaranteed to be stable across versions or platforms and must not be relied on for storage or security purposes.

Use hash for hash-table bucketing, fingerprinting, change detection, and similar in-process tasks. For cryptographic digests use md5, sha1_digest, or one of the SHA-2 family of digest functions.

Parameters

val

Any Virtuoso value: string, number, vector, array, or any other boxed type.

Return Types

A signed integer.

See Also

md5, md5_box, sha1_digest


© 1992 - OpenLink Software. All rights reserved.

Making Technology Work for You®