Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110623065452.GU12592@brightrain.aerifal.cx>
Date: Thu, 23 Jun 2011 02:54:52 -0400
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: Completeness status of musl

On Tue, Jun 21, 2011 at 03:46:40AM +0200, Szabolcs Nagy wrote:
> * Rich Felker <dalias@...ifal.cx> [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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.