emacs-devel
[Top][All Lists]
Advanced

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

Re: exposing seed_random to lisp?


From: joakim
Subject: Re: exposing seed_random to lisp?
Date: Thu, 17 Mar 2011 09:12:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> On 03/16/2011 07:17 PM, Stefan Monnier wrote:
>> I don't see why not.
>
> I see one gotcha: a seed that is an Emacs fixnum
> typically does not contain enough entropy to cover
> all the possible seeds that seed_random can accept.
> One possible workaround is to have the seed be a list
> of fixnums rather than just a single fixnum.

Good catch. For compatibility with future super Emacsen, the function
could accept different types:
- single fixnum with too little entropy
- list of fixnums
- future bignum

list of fixnums would be my initial attempt.

-- 
Joakim Verona



reply via email to

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