A test for a new feature I wrote started failing with different error diffs in every run. I was perplexed by it become all of my code is supposed to be deterministic, no random values created or used anywhere. After poking all over the code base and breaking my head over it for a day, I realized that the non-determinism comes from the hashmaps I used in my code. This is because iteration over hashmaps is non-deterministic, causing the output to be possibly different every time. ๐Ÿ˜ฉ

0

If you have a fediverse account, you can quote this note from your own instance. Search https://fantastic.earth/users/abnv/statuses/111453008437331399 on your instance and quote it. (Note that quoting is not supported in Mastodon.)