Oh yeah you’re right, apparently the main reason was to avoid hash-flooding attacks[1].
I do seem to remember there was a claim regarding the fact that it also prevented a certain class of errors (that I mentioned earlier), but I cannot find the source again, so it might just be my memory playing tricks on me.
[1] https://forums.swift.org/t/psa-the-stdlib-now-uses-randomly-...