goutil
goutil copied to clipboard
Function RandomChars has bug
System (please complete the following information):
- OS:
windows - GO Version:
1.19 - Pkg Version:
v0.6.12
Describe the bug
Always get string like this: jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjpp, 11111eeeeeeeeeeeeeeeeeeeeeeeeeee
To Reproduce Here is my code:
func TestRandStr(t *testing.T) {
a := strutil.RandomCharsV2(32)
t.Log(a)
}
Screenshots
hi @cos800 on my machine(macOS):
好像是在 Windows 下有问题,随机数出来的重复了。
我暂时也没找到解决办法。 rand 包好像在Windows下有BUG
我暂时也没找到解决办法。 rand 包好像在Windows下有BUG
可以看下我的提交https://github.com/gookit/goutil/pull/154