17 lines
231 B
Go
17 lines
231 B
Go
package utils
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestRandStr(t *testing.T) {
|
|
InitSnowFlakeByGo()
|
|
for i := 0; i < 1000; i++ {
|
|
//nonce := GenRandStr(32)
|
|
nonce := GetSerialNo()
|
|
fmt.Println("提现订单编号:", nonce)
|
|
}
|
|
|
|
}
|