We aren't quite ready to invest in lava lamps, but we are thinking deeply about randomization ersc.io/blog/when-ra...
Post
ersc.ioWhen random is not actually random enoughA short lesson in API design
It's more that we were reviewing our code, found this mistake, fixed it, and I decided to write about why it's a bad pattern. It isn't as if this magically unlocked something we didn't have, it's just musing on API design (I wrote the article and most of our Antithesis integration.)
0 reposts3 likes
In general people focus a lot on the minor probability skew in the u64 case (bigger skews happen in more controlled situations I've seen, people do make this same mistake even with rand_between on a small domain) but it's more about having an API that just lets you do the right thing from the start.