function hash(): Number(guint) {
    // Gjs wrapper for g_variant_hash()

Generates a hash value for a GLib.Variant instance.

The output of this function is guaranteed to be the same for a given value only per-process. It may change between different processor architectures or even different versions of GLib. Do not use this function as a basis for building protocols or file formats.

The type of value is #gconstpointer only to allow use of this function with GLib.HashTable. value must be a GLib.Variant.

Since 2.24


a hash value corresponding to value