hash.q
Examples
.hash.xxh64 "hello world".hash.xxh64 `AAPL`MSFT`IBM.hash.seeded[`murmur3_32;42;"hello world"]Entity Summary
| Entities | Short Description |
|---|---|
| .hash.murmur3_128[x] | MurmurHash3 x86_128 with seed 0, as the 16 bytes the reference writes (four little-endian words), what every MurmurHash3 library hands back as bytes; `raze string reverse` reads them as one little-endian number. |
| .hash.murmur3_32[x] | MurmurHash3 x86_32 with seed 0, as a long holding the unsigned 32-bit value. |
| .hash.murmur3_x64_128[x] | MurmurHash3 x64_128 with seed 0, as the 16 bytes the reference writes (two little-endian words), what every MurmurHash3 library hands back as bytes; `raze string reverse` reads them as one little-endian number. |
| .hash.rapidhash[x] | rapidhash v3 with seed 0, as the long with the same 64 bits. |
| .hash.seeded[algo;seed;data] | Any of the eight hashes with an explicit seed; seed 0 is the plain form. |
| .hash.xxh32[x] | xxHash XXH32 with seed 0, as a long holding the unsigned 32-bit value. |
| .hash.xxh3_128[x] | xxHash XXH3 128-bit with seed 0, as 16 bytes in xxHash's canonical order (high 64 bits first), so `raze string` of the result is the hex other xxHash implementations print. |
| .hash.xxh3_64[x] | xxHash XXH3 64-bit with seed 0, as the long with the same 64 bits. |
| .hash.xxh64[x] | xxHash XXH64 with seed 0, as the long with the same 64 bits. |
Entity Details
.hash.murmur3_128[x]
MurmurHash3 x86_128 with seed 0, as the 16 bytes the reference writes (four little-endian words), what every MurmurHash3 library hands back as bytes; `raze string reverse` reads them as one little-endian number.
Examples
.hash.murmur3_128 "abc".hash.murmur3_32[x]
MurmurHash3 x86_32 with seed 0, as a long holding the unsigned 32-bit value.
Examples
.hash.murmur3_32 "abc".hash.murmur3_x64_128[x]
MurmurHash3 x64_128 with seed 0, as the 16 bytes the reference writes (two little-endian words), what every MurmurHash3 library hands back as bytes; `raze string reverse` reads them as one little-endian number.
Examples
.hash.murmur3_x64_128 "abc".hash.rapidhash[x]
rapidhash v3 with seed 0, as the long with the same 64 bits.
Examples
.hash.rapidhash "abc".hash.seeded[algo;seed;data]
Any of the eight hashes with an explicit seed; seed 0 is the plain form.
| Return: | as the algorithm's plain form; a vector (or list of 16-byte vectors) over a collection |
|---|---|
| Parameters: |
|
| throws: |
Examples
.hash.seeded[`xxh64;42;"abc"].hash.seeded[`murmur3_32;42;("abc";`abc;0x616263)].hash.xxh32[x]
xxHash XXH32 with seed 0, as a long holding the unsigned 32-bit value.
Examples
.hash.xxh32 "abc".hash.xxh3_128[x]
xxHash XXH3 128-bit with seed 0, as 16 bytes in xxHash's canonical order (high 64 bits first), so `raze string` of the result is the hex other xxHash implementations print.
Examples
raze string .hash.xxh3_128 "abc".hash.xxh3_64[x]
xxHash XXH3 64-bit with seed 0, as the long with the same 64 bits.
Examples
.hash.xxh3_64 "abc".hash.xxh64[x]
xxHash XXH64 with seed 0, as the long with the same 64 bits.
Examples
.hash.xxh64 "abc"