[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 15:54:27 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
On Fri 20 Jan 2012 04:28, Mark H Weaver <address@hidden> writes:
> `seed->random-state' is poorly implemented when passed a numeric
> argument. It converts the number to a decimal string, and then
> `scm_i_init_rstate' takes over and basically adds every 8th byte
> together to form the 64-bit internal state.
Is that what it does?
I agree that it's a pretty bad initializer to a pretty bad PRNG, but
from what I can tell, it does use all of the bytes in the input. They
aren't very dense bytes, entropy-wise, but there are more of them, so I
think the amount of entropy added to the seed is the same.
Dunno. Am I reading that code wrong?
Regards,
Andy
--
http://wingolog.org/
- Improve `seed->random-state' in stable-2.0?, Mark H Weaver, 2012/01/19
- Re: Improve `seed->random-state' in stable-2.0?, David Kastrup, 2012/01/20
- Re: Improve `seed->random-state' in stable-2.0?,
Andy Wingo <=
- Re: Improve `seed->random-state' in stable-2.0?, Mike Gran, 2012/01/20
- Re: Improve `seed->random-state' in stable-2.0?, Andy Wingo, 2012/01/23
- Re: Improve `seed->random-state' in stable-2.0?, Mike Gran, 2012/01/23
- Re: Improve `seed->random-state' in stable-2.0?, Andy Wingo, 2012/01/23