package
Version:
v0.0.0-...-2e4edee
Opens a new window with list of versions in this module.
Published: Feb 28, 2022
License: LGPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
random包提供一套生成随机字符串的方法。
包括根据字符串生成sha1和sha256散列值,生成40位或成倍的Unid的方法。
根据输入的text生成唯一ID。length最小需要为1,返回的字符串的长度为length*40个字符长,为length个sha1的值串联。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.