util

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HmacSha256

func HmacSha256(data []byte, secret string) string

func Md5

func Md5(str string) string

func StrategicGrowthNumber added in v0.0.6

func StrategicGrowthNumber(num, start, end int64) int64

StrategicGrowthNumber 获取策略增长数 计算指定周期内随机增长后的值 周期数num 随机区间start end 取随机区间中间数为基数,取区间中间一半为实际区间产生随机数 [ [x|x] ] 返回 基数*周期数+随机数 原理 区间随机数求和总是趋近于区间中间值

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL