Would /dev/urandom suffice?
Sure. But for portability's sake, the code should read 4 bytes from /dev/random to seed srand() (fallback to (time XOR pid) or something similar if /dev/random can't be opened), then call rand() to supply however many bytes you want to use.
_______________________________________________ Nmh-workers mailing list Nmh-workers(_at_)nongnu(_dot_)org https://lists.nongnu.org/mailman/listinfo/nmh-workers
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [Nmh-workers] Message-IDs and Content-IDs, Lyndon Nerenberg |
---|---|
Next by Date: | Re: [Nmh-workers] Message-IDs and Content-IDs, Ken Hornstein |
Previous by Thread: | Re: [Nmh-workers] Message-IDs and Content-IDs, Ralph Corderoy |
Next by Thread: | Re: [Nmh-workers] Message-IDs and Content-IDs, Ken Hornstein |
Indexes: | [Date] [Thread] [Top] [All Lists] |