> btw, isn't it better to have callers supply storage for randomid_ctx > rather than doing malloc, esp. for libc internal uses? No - because you don't want even the size of the structure to be known to the caller. That way you can change the implementation without having to recompile all the applications. David -- David Laight: david@l8s.co.uk