Merge commit 'a6e635ca7d905d9ec3ffd708db2694f680b03aae'

This commit is contained in:
Bjørn Erik Pedersen
2024-08-09 15:17:43 +02:00
143 changed files with 3258 additions and 2109 deletions

View File

@@ -1,23 +1,26 @@
---
title: crypto.FNV32a
description: Returns the FNV (FowlerNollVo) 32-bit hash of a given string.
description: Returns the 32-bit FNV (FowlerNollVo) non-cryptographic hash of the given string.
categories: []
keywords: []
action:
aliases: []
related:
- functions/hash/Xxhash
- functions/crypto/HMAC
- functions/crypto/MD5
- functions/crypto/SHA1
- functions/crypto/SHA256
returnType: int
signatures: [crypto.FNV32a STRING]
aliases: [/functions/crypto.fnv32a]
expiryDate: 2025-07-31 # deprecated 2024-07-31
---
{{< new-in 0.98.0 >}}
{{% deprecated-in 0.129.0 %}}
Use [`hash.FNV32a`] instead.
This function calculates the 32-bit [FNV1a hash](https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function#FNV-1a_hash) of a given string according to the [specification](https://datatracker.ietf.org/doc/html/draft-eastlake-fnv-12):
[`hash.FNV32a`]: /functions/hash/FNV32a/
{{% /deprecated-in %}}
```go-html-template
{{ crypto.FNV32a "Hello world" }} → 1498229191