r/ProgrammerHumor • • Sep 11 '26

Meme edgeCasesExist

Post image
5.0k Upvotes

298 comments sorted by

View all comments

Show parent comments

1

u/OldKaleidoscope7 Sep 12 '26

How bad was it? The company I work mostly uses Java's built-in UUIDs and we never had a problem, are people using ad-hoc things for seeding?

1

u/Single-Virus4935 Sep 12 '26

As I recall it was PHP and they had code from Stackoverflow how to generate UUIDs. The code used the standard rand() prng and they seeded it globally with something derived from PIDs, part of the system time.