Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function RandomChars has bug #121

Open
cos800 opened this issue Aug 16, 2023 · 4 comments
Open

Function RandomChars has bug #121

cos800 opened this issue Aug 16, 2023 · 4 comments
Assignees
Labels
bug:fixed bug Something isn't working

Comments

@cos800
Copy link

cos800 commented Aug 16, 2023

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

image

@inhere inhere added the bug Something isn't working label Aug 16, 2023
@inhere
Copy link
Member

inhere commented Aug 31, 2023

hi @cos800 on my machine(macOS):

image

@inhere
Copy link
Member

inhere commented Sep 8, 2023

好像是在 Windows 下有问题,随机数出来的重复了。

@inhere
Copy link
Member

inhere commented Oct 13, 2023

我暂时也没找到解决办法。 rand 包好像在Windows下有BUG

@pigwantacat
Copy link
Contributor

我暂时也没找到解决办法。 rand 包好像在Windows下有BUG

可以看下我的提交#154

inhere pushed a commit that referenced this issue Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:fixed bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants