CJohnston079 / obfuscator

0 stars 0 forks source link

`anonymise` generates the same data for every entry in a dictionary #27

Closed CJohnston079 closed 4 months ago

CJohnston079 commented 4 months ago

Issue

When anonymising multiple entries, the same data is generated for every entry.

Proposed resolution

Make use of Faker's seed functionality to ensure that a different seed is used for each entry.

CJohnston079 commented 4 months ago

Resolved in 600f8db14e23f6805c892b66cb4ed19ed3c9878b. Seeding Faker did not resolve the issue, but did expose it. The data generation was occurring outside of the anonymise function, which meant that it remained the same for every function call.