[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Improve `seed->random-state' in stable-2.0?

From: Andy Wingo
Subject: Re: Improve `seed->random-state' in stable-2.0?
Date: Fri, 20 Jan 2012 21:35:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Hi Mark,

Thanks for the explanations!

On Fri 20 Jan 2012 19:52, Mark H Weaver <address@hidden> writes:

> We have a 64-bit PRNG, but even if you make sure to seed it with a
> number that has plenty of entropy, `seed->random-state' will only
> preserve around 32 bits of it.

Wow, that's horrible.  Agreed that this needs fixing.

How about, we extend seed->random-state to operate on bytevectors, and
have that interface do the right thing.  We deprecate the number
interface.  At some point in the future we deprecate the string
interface as well.

I'm hesitant to make seed->random-state change the rstate that it
produces, for a given seed.  It's unlikely anyone is relying on this,
but who knows...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]