GNU bug report logs - #9103
23.3.50; random* from cl does not support the whole range of integers

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Leo <sdl.web@HIDDEN>; dated Sun, 17 Jul 2011 04:04:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 9103 <at> debbugs.gnu.org:


Received: (at 9103) by debbugs.gnu.org; 11 Sep 2011 07:48:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 11 03:48:49 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1R2emW-00049C-En
	for submit <at> debbugs.gnu.org; Sun, 11 Sep 2011 03:48:49 -0400
Received: from mail-out.m-online.net ([212.18.0.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <whitebox@HIDDEN>) id 1R2emT-000494-Tc
	for 9103 <at> debbugs.gnu.org; Sun, 11 Sep 2011 03:48:47 -0400
Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net
	[192.168.8.180])
	by mail-out.m-online.net (Postfix) with ESMTP id 1AA61188A188;
	Sun, 11 Sep 2011 09:44:30 +0200 (CEST)
X-Auth-Info: LHr7dOwnF+1owxRvN7LIcgQwMhEwtw0bLCRngCqgrKc=
Received: from linux.local (ppp-88-217-122-177.dynamic.mnet-online.de
	[88.217.122.177])
	by mail.mnet-online.de (Postfix) with ESMTPA id 1CBAB1C001B8;
	Sun, 11 Sep 2011 09:44:30 +0200 (CEST)
Received: by linux.local (Postfix, from userid 501)
	id 586BF1E53A9; Sun, 11 Sep 2011 09:44:29 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Lars Magne Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#9103: 23.3.50;
	random* from cl does not support the whole range of integers
References: <m1pql9eepx.fsf@HIDDEN> <w962mzb6ce.fsf@HIDDEN>
	<0i1uxnb69f.fsf@HIDDEN> <m31uvn22an.fsf@HIDDEN>
X-Yow: Am I SHOPLIFTING?
Date: Sun, 11 Sep 2011 09:44:28 +0200
In-Reply-To: <m31uvn22an.fsf@HIDDEN> (Lars Magne Ingebrigtsen's
	message of "Sun, 11 Sep 2011 05:20:00 +0200")
Message-ID: <m2d3f7v7z7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 9103
Cc: Glenn Morris <rgm@HIDDEN>, Leo <sdl.web@HIDDEN>, 9103 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

Lars Magne Ingebrigtsen <larsi@HIDDEN> writes:

> `random*' ends with
>
> (* (/ n '8388608e0) lim)
>
> if LIM isn't an integer.  Anybody willing to hazard a guess why
> 8388608.0 was chosen?

Because that's the range of n.

Andreas.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9103; Package emacs. Full text available.

Message received at 9103 <at> debbugs.gnu.org:


Received: (at 9103) by debbugs.gnu.org; 11 Sep 2011 03:32:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 10 23:32:21 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1R2amK-0002qt-7l
	for submit <at> debbugs.gnu.org; Sat, 10 Sep 2011 23:32:21 -0400
Received: from hermes.netfonds.no ([80.91.224.195])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <larsi@HIDDEN>) id 1R2amG-0002qU-OH
	for 9103 <at> debbugs.gnu.org; Sat, 10 Sep 2011 23:32:18 -0400
Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]
	helo=stories.gnus.org)
	by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.72) (envelope-from <larsi@HIDDEN>)
	id 1R2ai5-00080V-9a; Sun, 11 Sep 2011 05:27:57 +0200
From: Lars Magne Ingebrigtsen <larsi@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#9103: 23.3.50;
	random* from cl does not support the whole range of integers
In-Reply-To: <0i1uxnb69f.fsf@HIDDEN> (Glenn Morris's message of
	"Mon, 18 Jul 2011 17:58:36 -0400")
Date: Sun, 11 Sep 2011 05:20:00 +0200
Message-ID: <m31uvn22an.fsf@HIDDEN>
References: <m1pql9eepx.fsf@HIDDEN> <w962mzb6ce.fsf@HIDDEN>
	<0i1uxnb69f.fsf@HIDDEN>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)
X-Now-Playing: Cocteau Twins's _Echoes in a Shallow Bay_: "Melonella"
MIME-Version: 1.0
Content-Type: text/plain
X-MailScanner-ID: 1R2ai5-00080V-9a
X-Netfonds-MailScanner: Found to be clean
X-Netfonds-MailScanner-From: larsi@HIDDEN
MailScanner-NULL-Check: 1316316477.36246@DBAfV6S/4cLwVOLdIppiaA
X-Spam-Status: No
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: 9103
Cc: Leo <sdl.web@HIDDEN>, 9103 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.7 (--)

Glenn Morris <rgm@HIDDEN> writes:

> Glenn Morris wrote:
>
>> Why does random* even need to exist? What can it do that plain random
>> cannot?
>
> ...non-integer results, it seems.

`random*' ends with

(* (/ n '8388608e0) lim)

if LIM isn't an integer.  Anybody willing to hazard a guess why
8388608.0 was chosen?

And would it make sense to just replace it all with a call to `random',
and then make it into a floating point if it floats?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9103; Package emacs. Full text available.

Message received at 9103 <at> debbugs.gnu.org:


Received: (at 9103) by debbugs.gnu.org; 19 Jul 2011 01:29:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 18 21:29:42 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Qiz81-0003Si-HE
	for submit <at> debbugs.gnu.org; Mon, 18 Jul 2011 21:29:42 -0400
Received: from mail-pz0-f41.google.com ([209.85.210.41])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lekktu@HIDDEN>) id 1Qiz7z-0003ST-6w
	for 9103 <at> debbugs.gnu.org; Mon, 18 Jul 2011 21:29:40 -0400
Received: by pzk4 with SMTP id 4so4052786pzk.0
	for <9103 <at> debbugs.gnu.org>; Mon, 18 Jul 2011 18:29:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	bh=3Y2n5GJm+81qqIoAKn9ElLN+8k0bN3Vk5or2l2L40H0=;
	b=p7UfGDcRFeUsX+5CZ5uzMvz6U7yTTMq3HGP+xGOo+e+j74NjQT/IacjFqTNiJog9m/
	dRQ5JremAElaMkKR1xxkaVoauEwGLL6zAnVJfyaVM0edS8l45YKW4E4eIvX+NL3PeyEg
	GvuuofbigKB/EUDaRp1XnDTRs3yQFF9StDXI4=
Received: by 10.143.2.12 with SMTP id e12mr3141753wfi.296.1311038971502; Mon,
	18 Jul 2011 18:29:31 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.141.19 with HTTP; Mon, 18 Jul 2011 18:28:51 -0700 (PDT)
In-Reply-To: <m1pql712w3.fsf@HIDDEN>
References: <m1pql9eepx.fsf@HIDDEN> <w962mzb6ce.fsf@HIDDEN>
	<0i1uxnb69f.fsf@HIDDEN> <m1pql712w3.fsf@HIDDEN>
From: Juanma Barranquero <lekktu@HIDDEN>
Date: Tue, 19 Jul 2011 03:28:51 +0200
Message-ID: <CAAeL0SRfqqFJtwVCj=XYo50HBOLjazq0mLi3pf6FGTHr4enUvQ@HIDDEN>
Subject: Re: bug#9103: 23.3.50; random* from cl does not support the whole
	range of integers
To: Leo <sdl.web@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -3.3 (---)
X-Debbugs-Envelope-To: 9103
Cc: Glenn Morris <rgm@HIDDEN>, 9103 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.3 (---)

On Tue, Jul 19, 2011 at 03:21, Leo <sdl.web@HIDDEN> wrote:

> The
> files mt19937.[ch] are from its authors'. Do you know if that can be
> included in Emacs?

From http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/elicense.html :

"Until 2001/4/6, MT had been distributed under GNU Public License, but
after 2001/4/6, we decided to let MT be used for any purpose,
including commercial use. 2002-versions mt19937ar.c, mt19937ar-cok.c
are considered to be usable freely."

=C2=A0 =C2=A0 Juanma




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9103; Package emacs. Full text available.

Message received at 9103 <at> debbugs.gnu.org:


Received: (at 9103) by debbugs.gnu.org; 19 Jul 2011 01:21:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 18 21:21:53 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Qiz0T-0003IP-0N
	for submit <at> debbugs.gnu.org; Mon, 18 Jul 2011 21:21:53 -0400
Received: from mail-iy0-f172.google.com ([209.85.210.172])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <sdl.web@HIDDEN>) id 1Qiz0R-0003IE-4m
	for 9103 <at> debbugs.gnu.org; Mon, 18 Jul 2011 21:21:51 -0400
Received: by iye7 with SMTP id 7so3434560iye.3
	for <9103 <at> debbugs.gnu.org>; Mon, 18 Jul 2011 18:21:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=from:to:cc:subject:references:date:in-reply-to:message-id
	:user-agent:mime-version:content-type;
	bh=tdU1HTmDRjfMM7UQOmUm10mAIjwnGrAyhFtjer+X9V4=;
	b=CJCO92YOrIWFma6I1Sie1LdDRJ+u25YszLc06pGMsE6rOI3klzfjZ2S80R2AShrai6
	X7p9vOwXOdROtCxzd7rzvARf/c46WMZPpFwAo8oJ8q/5nO5QgZ28virkeHetEtjIgD5N
	qtcNh8IEx9PHQO0gubBrkqT92SCHlU0A0USpM=
Received: by 10.42.135.129 with SMTP id p1mr7848657ict.37.1311038505491;
	Mon, 18 Jul 2011 18:21:45 -0700 (PDT)
Received: from localhost ([114.247.10.74])
	by mx.google.com with ESMTPS id ue1sm55409icb.8.2011.07.18.18.21.41
	(version=TLSv1/SSLv3 cipher=OTHER);
	Mon, 18 Jul 2011 18:21:44 -0700 (PDT)
From: Leo <sdl.web@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#9103: 23.3.50;
	random* from cl does not support the whole range of integers
References: <m1pql9eepx.fsf@HIDDEN> <w962mzb6ce.fsf@HIDDEN>
	<0i1uxnb69f.fsf@HIDDEN>
Date: Tue, 19 Jul 2011 09:21:32 +0800
In-Reply-To: <0i1uxnb69f.fsf@HIDDEN> (Glenn Morris's message of
	"Mon, 18 Jul 2011 17:58:36 -0400")
Message-ID: <m1pql712w3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.8)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -3.9 (---)
X-Debbugs-Envelope-To: 9103
Cc: 9103 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.9 (---)

On 2011-07-19 05:58 +0800, Glenn Morris wrote:
> Glenn Morris wrote:
>
>> Why does random* even need to exist? What can it do that plain random
>> cannot?
>
> ...non-integer results, it seems.

We need to extend plain random to support random-states. I plan to do it
once the random module in gnulib is usable.

Another option is to use Mersenne Twister PRNG, which I have in my local
tree (patch: http://paste.pocoo.org/show/ZYhLUPeXlkj405100KX4/). The
files mt19937.[ch] are from its authors'. Do you know if that can be
included in Emacs?

Leo




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9103; Package emacs. Full text available.

Message received at 9103 <at> debbugs.gnu.org:


Received: (at 9103) by debbugs.gnu.org; 18 Jul 2011 21:58:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 18 17:58:44 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Qivpr-0007FA-SL
	for submit <at> debbugs.gnu.org; Mon, 18 Jul 2011 17:58:44 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1Qivpq-0007Er-4X
	for 9103 <at> debbugs.gnu.org; Mon, 18 Jul 2011 17:58:42 -0400
Received: from localhost ([127.0.0.1]:46902)
	by fencepost.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1Qivpk-0002ze-DA; Mon, 18 Jul 2011 17:58:36 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Leo <sdl.web@HIDDEN>
Subject: Re: bug#9103: 23.3.50;
	random* from cl does not support the whole range of integers
References: <m1pql9eepx.fsf@HIDDEN> <w962mzb6ce.fsf@HIDDEN>
X-Spook: halcon Montenegro ASO CISU defense information warfare
X-Ran: XL<TpraaPrRQmrUH~[*nJG$S!RbaQIc6f}"kOX='Ro]e(8"O?X<kX?P4}8Wl/KRwI1uQAF
X-Hue: green
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Mon, 18 Jul 2011 17:58:36 -0400
In-Reply-To: <w962mzb6ce.fsf@HIDDEN> (Glenn Morris's message of
	"Mon, 18 Jul 2011 17:56:49 -0400")
Message-ID: <0i1uxnb69f.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 9103
Cc: 9103 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)

Glenn Morris wrote:

> Why does random* even need to exist? What can it do that plain random
> cannot?

...non-integer results, it seems.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9103; Package emacs. Full text available.

Message received at 9103 <at> debbugs.gnu.org:


Received: (at 9103) by debbugs.gnu.org; 18 Jul 2011 21:56:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 18 17:56:56 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Qivo8-0007CS-KG
	for submit <at> debbugs.gnu.org; Mon, 18 Jul 2011 17:56:56 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1Qivo7-0007CH-8D
	for 9103 <at> debbugs.gnu.org; Mon, 18 Jul 2011 17:56:55 -0400
Received: from localhost ([127.0.0.1]:46882)
	by fencepost.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1Qivo2-0002wN-0a; Mon, 18 Jul 2011 17:56:50 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Leo <sdl.web@HIDDEN>
Subject: Re: bug#9103: 23.3.50;
	random* from cl does not support the whole range of integers
References: <m1pql9eepx.fsf@HIDDEN>
X-Spook: fundamentalist crypto anarchy JSOFC3IP Guantanamo Mossad
X-Ran: Tt<>QI`S!Yu$R:&5St}1#U6Y*U3{&t-d4Ol`<S@g@Jv:\(:JF_Z$XGdBMY4A$Z5j}mkOI=
X-Hue: magenta
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Mon, 18 Jul 2011 17:56:49 -0400
In-Reply-To: <m1pql9eepx.fsf@HIDDEN> (Leo's message of "Sun, 17 Jul 2011
	12:03:06 +0800")
Message-ID: <w962mzb6ce.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 9103
Cc: 9103 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)

Leo wrote:

> As far as I can see, (random* most-positive-fixnum) only returns a 32bit
> integer on 64bit Emacs.

Why does random* even need to exist? What can it do that plain random
cannot?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9103; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Jul 2011 04:03:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 17 00:03:34 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QiIZp-0004y9-JR
	for submit <at> debbugs.gnu.org; Sun, 17 Jul 2011 00:03:34 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <sdl.web@HIDDEN>) id 1QiIZn-0004xx-9T
	for submit <at> debbugs.gnu.org; Sun, 17 Jul 2011 00:03:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sdl.web@HIDDEN>) id 1QiIZg-00036r-Ii
	for submit <at> debbugs.gnu.org; Sun, 17 Jul 2011 00:03:25 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:40597)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sdl.web@HIDDEN>) id 1QiIZg-00036n-8P
	for submit <at> debbugs.gnu.org; Sun, 17 Jul 2011 00:03:24 -0400
Received: from eggs.gnu.org ([140.186.70.92]:48787)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sdl.web@HIDDEN>) id 1QiIZe-0005yt-Pl
	for bug-gnu-emacs@HIDDEN; Sun, 17 Jul 2011 00:03:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sdl.web@HIDDEN>) id 1QiIZd-00036d-84
	for bug-gnu-emacs@HIDDEN; Sun, 17 Jul 2011 00:03:22 -0400
Received: from mail-iy0-f169.google.com ([209.85.210.169]:58152)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sdl.web@HIDDEN>) id 1QiIZc-00036Z-QS
	for bug-gnu-emacs@HIDDEN; Sun, 17 Jul 2011 00:03:21 -0400
Received: by iyb14 with SMTP id 14so1116635iyb.0
	for <bug-gnu-emacs@HIDDEN>; Sat, 16 Jul 2011 21:03:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=from:to:subject:x-debbugs-cc:date:message-id:mime-version
	:content-type; bh=6P9NFo4hbIXpEioiPHA6yZOyfmsmUAQqfsy1A1x40/s=;
	b=bKP1ynUVF8eLPbO86VWZwKXSBwJErezAOroOjA1W9JKrCNJiJEenmvylMuqiSmdD4D
	CfiUZb2h0X8vOCob4XqXpsJtPvkZxuABFHa1TIb6cUkn23B821ZxHlQGlnG8MSx780l5
	EsAd8nCgViGVI6fRiI8p7A4mfxTVfC2hli+Ec=
Received: by 10.42.172.74 with SMTP id m10mr5729680icz.89.1310875399049;
	Sat, 16 Jul 2011 21:03:19 -0700 (PDT)
Received: from localhost ([114.247.10.82])
	by mx.google.com with ESMTPS id v16sm1965213ibf.25.2011.07.16.21.03.15
	(version=TLSv1/SSLv3 cipher=OTHER);
	Sat, 16 Jul 2011 21:03:18 -0700 (PDT)
From: Leo <sdl.web@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 23.3.50; random* from cl does not support the whole range of integers
X-Debbugs-CC: 
Date: Sun, 17 Jul 2011 12:03:06 +0800
Message-ID: <m1pql9eepx.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.0 (-----)

As far as I can see, (random* most-positive-fixnum) only returns a 32bit
integer on 64bit Emacs. This might be an oversight given the age of
cl.el.

Leo




Acknowledgement sent to Leo <sdl.web@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9103; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.