News for hackers. Stuff that matters.
Re:Nanosecond timestamp collisions are common by glodalitazic on Friday July 21, 2023 @06:00AM (#36812000)
Iirc you dont want to spend entropy that you don't need. The advantage of using the time means you need to spend less bits on expensive randomness and thus generation is cheaper.
Re:Nanosecond timestamp collisions are common by SV_BubbleTime on Friday July 21, 2023 @12:18PM (#36815685)
I only work in embedded, so I’m not sure about fancy computers - but when we make UUIDv7s, I am certain the random is faster than pulling the time, formatting for milliseconds, then storing in position.
Re:Nanosecond timestamp collisions are common by eru on Saturday July 22, 2023 @10:55PM (#36832173)
PRNGs are cheap to compute, and 'random' enough.