-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
concurrent map writes happened while use "options.WithGenerateUniqueValues(true)" #29
Comments
Can you give me your test scenario? How to reproduce it here? What are the usecases? |
This line definitely not safe for concurrent |
Simply put, I used the |
Happening in
|
Hi @Milk-Tang and @ornj Thanks for the issue, and I'm sorry for the late update. |
while I'm using
faker.Username(options.WithGenerateUniqueValues(true))
in a concurrent scenario,"concurrent map writes" happened in the func
generateUnique
:faker/faker.go
Lines 1328 to 1337 in 91fd09b
The text was updated successfully, but these errors were encountered: