simpleHash 函数用于生成字符串的简单哈希值。
import { simpleHash } from '@movk/core'
const hash1 = simpleHash('hello world')
console.log(hash1) // 'nf5xd4'
const hash2 = simpleHash('hello world')
console.log(hash1 === hash2) // true,相同字符串产生相同哈希
const hash3 = simpleHash('hello world!')
console.log(hash1 === hash3) // false,不同字符串产生不同哈希
simpleHash(str)生成字符串的简单哈希值。
b6146 — refactor: 统一源码文件命名为 camelCase