From: joakim@verona.se
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
Emacs developers <emacs-devel@gnu.org>
Subject: Re: exposing seed_random to lisp?
Date: Thu, 17 Mar 2011 09:12:54 +0100 [thread overview]
Message-ID: <m3d3lqyxkp.fsf@verona.se> (raw)
In-Reply-To: <4D817058.2080806@cs.ucla.edu> (Paul Eggert's message of "Wed, 16 Mar 2011 19:22:16 -0700")
Paul Eggert <eggert@cs.ucla.edu> 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
prev parent reply other threads:[~2011-03-17 8:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-16 21:17 exposing seed_random to lisp? joakim
2011-03-17 2:17 ` Stefan Monnier
2011-03-17 2:22 ` Paul Eggert
2011-03-17 8:12 ` joakim [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3d3lqyxkp.fsf@verona.se \
--to=joakim@verona.se \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).