From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/68 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Completeness status of musl Date: Thu, 23 Jun 2011 02:54:52 -0400 Message-ID: <20110623065452.GU12592@brightrain.aerifal.cx> References: <20110528234156.GA277@brightrain.aerifal.cx> <4DE271F8.8030107@int3.at> <4DE277DF.3020605@int3.at> <4DE28333.9040900@int3.at> <20110529180854.GC6142@port70.net> <20110530103009.GE6142@port70.net> <20110530154741.GB277@brightrain.aerifal.cx> <20110530172735.GF6142@port70.net> <20110608235810.GJ191@brightrain.aerifal.cx> <20110621014640.GL27421@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1308812524 2962 80.91.229.12 (23 Jun 2011 07:02:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2011 07:02:04 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-152-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jun 23 09:02:00 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1QZdvL-0007Xk-FO for gllmg-musl@lo.gmane.org; Thu, 23 Jun 2011 09:01:59 +0200 Original-Received: (qmail 6128 invoked by uid 550); 23 Jun 2011 07:01:58 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 6120 invoked from network); 23 Jun 2011 07:01:58 -0000 Content-Disposition: inline In-Reply-To: <20110621014640.GL27421@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:68 Archived-At: On Tue, Jun 21, 2011 at 03:46:40AM +0200, Szabolcs Nagy wrote: > * Rich Felker [2011-06-08 19:58:10 -0400]: > > > > Importing external code, with major cleanups or rewrite: > > - PRNG (random) > > i looked into this one > these functions are rather useless > imho the posix api definition is insane > http://pubs.opengroup.org/onlinepubs/9699919799/functions/random.html > > i wrote something anyway > see comments in the code: > http://port70.net/~nsz/musl/prng I like this. A couple questions/requests: 1. Is this simple code really equivalent (aside from the missing non-default-size code) to the ugly BSD code that's 100x bigger and full of undefined behavior? :) 2. If you'd like me to include this in musl, can you please license it (either LGPL v2.1+ or any LGPL-compatible/less-restrictive license such as BSD). 3. For future code contributions, please attach the code/patches to the email rather than just including a link. That way the code being referred to/discussed is visible even if the version on the website changes or the website it taken down. Rich