Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Aren't you supposed to use arc4random once to seed a high-quality pseudorandom generator? From what I understand, seeding a high-quality PRNG with good source of randomness is really all you need.


arc4random is their high-quality pseudorandom generator that's seeded from a good source of randomness (namely, the getentropy system call).


Yes, but like urandom the general intent (at least when performance is desired) is you use it to seed your own PRNG and avoid making system calls every time you need random data.




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

Search: