randominfo

package
v0.0.0-...-4dd6461 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package randominfo 提供随机信息生成服务

Index

Constants

This section is empty.

Variables

View Source
var (
	RamdomNumber         = RandomNumber
	RamdomBytes          = RandomBytes
	RamdomMD5String      = RandomMD5String
	RamdomMD5UpperString = RandomMD5String
)
View Source
var (
	// PhoneModelDataBase 手机型号库
	PhoneModelDataBase = []string{}/* 339 elements not displayed */

)

Functions

func GetPhoneModel

func GetPhoneModel(key string) string

GetPhoneModel 根据key, 从PhoneModelDataBase中取出手机型号

func RandomBytes

func RandomBytes(n int) []byte

RandomBytes 随机字节数组

func RandomMD5String

func RandomMD5String() string

RandomMD5String 随机md5字符串

func RandomMD5UpperString

func RandomMD5UpperString() string

RandomMD5UpperString 随机md5字符串, 大写

func RandomNumber

func RandomNumber(min, max uint64) (v uint64)

RandomNumber 返回[min, max]随机数字

func SumIMEI

func SumIMEI(key string) uint64

SumIMEI 根据key计算出imei

Types

This section is empty.

Jump to

Keyboard shortcuts

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