Hi > + /* Encode the PID (with 1 bit of randomness) into 3 base-64 chars */ > + pid = getpid() | (arc4random() & 0x00020000); What is the purpose of this? It looks hugely wasteful to me. If you really need a single random bit, it is not good to waste a block of hard-gained gryptographic randomness; can you not use a pseudo-random bit-generator? M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
- mktemp() patch Kris Kennaway
- Re: mktemp() patch Boris Popov
- Re: mktemp() patch Kris Kennaway
- Re: mktemp() patch Daniel O'Connor
- Re: mktemp() patch Bruce Campbell
- Re: mktemp() patch Matthew Dillon
- Re: mktemp() patch Mark Murray
- Re: mktemp() patch Kris Kennaway
- Re: mktemp() patch Mark Murray
- Re: mktemp() patch Jeroen C. van Gelderen
- Re: mktemp() patch Mark Murray
- Re: mktemp() patch Andrey A. Chernov
- Re: mktemp() patch Jeroen C. van Gelderen
- Re: mktemp() patch Andrey A. Chernov
- Re: mktemp() patch Andrey A. Chernov
- Re: mktemp() patch Andrey A. Chernov
- Re: mktemp() patch Kris Kennaway