faker icon indicating copy to clipboard operation
faker copied to clipboard

concurrent map writes happened while use "options.WithGenerateUniqueValues(true)"

Open Milk-Tang opened this issue 1 year ago • 3 comments

while I'm using faker.Username(options.WithGenerateUniqueValues(true)) in a concurrent scenario, "concurrent map writes" happened in the func generateUnique: https://github.com/go-faker/faker/blob/91fd09b0f81ca8520ead46dac24425c5db029861/faker.go#L1328-L1337

Milk-Tang avatar Jun 15 '23 07:06 Milk-Tang