mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: Completeness status of musl
Date: Thu, 23 Jun 2011 02:54:52 -0400	[thread overview]
Message-ID: <20110623065452.GU12592@brightrain.aerifal.cx> (raw)
In-Reply-To: <20110621014640.GL27421@port70.net>

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


  reply	other threads:[~2011-06-23  6:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-28 23:41 Help assessing " Rich Felker
2011-05-29 16:19 ` gs
2011-05-29 16:44   ` gs
2011-05-29 17:32     ` gs
2011-05-29 18:08       ` Szabolcs Nagy
2011-05-30 10:30         ` Szabolcs Nagy
2011-05-30 15:47           ` Rich Felker
2011-05-30 17:27             ` Szabolcs Nagy
2011-06-08 23:58               ` Completeness " Rich Felker
2011-06-21  1:46                 ` Szabolcs Nagy
2011-06-23  6:54                   ` Rich Felker [this message]
2011-06-23 13:25                     ` Szabolcs Nagy
2011-06-23 14:16                       ` Szabolcs Nagy
2011-06-23 18:50                         ` Szabolcs Nagy
2011-06-24 12:12                           ` Szabolcs Nagy
2011-06-25 18:31                 ` Szabolcs Nagy
2011-06-26 10:30                   ` Szabolcs Nagy
2011-06-29 21:14                 ` Rich Felker
2011-07-05 15:40                   ` Hiltjo Posthuma
2011-06-18 21:32               ` Help assessing " Szabolcs Nagy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110623065452.GU12592@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).