Subject: Re: randomid(3)
To: None <yamt@mwd.biglobe.ne.jp>
From: Jun-ichiro itojun Hagino <itojun@itojun.org>
List: tech-userlevel
Date: 09/12/2003 05:28:57
> > 	here's randomid(3) code i propose to integrate into libc.
> > 	first we'll use this from:
> > 	- lib/libc/net (DNS query ID)
> > 	- lib/libc/rpc (RPC XID)
> > 	then maybe more places.  comments are welcome.
> 
> you should check malloc failure.
> 
> btw, isn't it better to have callers supply storage for randomid_ctx
> rather than doing malloc, esp. for libc internal uses?

	i chose malloc() so that we don't need to expose sizeof(randomid_ctx)
	or its internals to the caller.

itojun