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

That'd be perfectly fine. You need to take some care to avoid duplicates or patterns though. Databases might not come with crypto-random out of the box but usually do have UUID support. Similarly, you need to use the crypto-random routines in your favorite standard library.

Depending on the implementation you still might have to worry about seeding issues. That's probably moot though since the UUID library would probably be compromised by something like that under the hood too.




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

Search: