Hash
大麻
Preview 预览Basic 基础Inputs 投入Outputs 产出Hash
大麻

A Hash function is a function which maps data of arbitrary size to data of a fixed size. For example, the input might be any letter of the alphabet, and the hashed result would be a (seemingly random) whole number between 1 and 10. As there are more than 10 letters in the alphabet, obviously not each letter can be mapped to a unique number — this is then referred to as a "hash collision”.
哈希函数是一个将任意大小的数据映射到固定大小的数据的函数。例如,输入可能是字母表中的任何一个字母,散列结果将是介于1和10之间的一个(看似随机的)整数。由于字母表中有10个以上的字母,显然不是每个字母都可以映射到一个唯一的数字ーー这就被称为“散列碰撞”。
In the case of the Hash node, this function is used to generate pseudorandom colors, floats and vectors based on both the Seed and Salt values.
对于 Hash 节点,这个函数用于根据 Seed 和 Salt 值生成伪随机颜色、浮点数和向量。