Hacker News new | past | comments | ask | show | jobs | submit login

If you use a PRNG to seed an incremental counter on every node, and you get one collision, you are bound to get zillions of them.

On the plus side, I think that means the risk that you get a collision is smaller.

Also, using bare incrementing counters may be a bad idea for different reasons: it allows attackers to guess IDs of future messages. You can counteract that by hashing the IDs using a good cryptographic hash function, but that effectively turns your ID generating process into a PRNG.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: