From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Back to emacsclient/server Date: Mon, 30 Oct 2006 08:33:35 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1162215868 11692 80.91.229.2 (30 Oct 2006 13:44:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Oct 2006 13:44:28 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 30 14:44:27 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GeXQQ-0006JN-IW for ged-emacs-devel@m.gmane.org; Mon, 30 Oct 2006 14:43:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GeXQP-0005hz-K4 for ged-emacs-devel@m.gmane.org; Mon, 30 Oct 2006 08:43:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GeXGl-0005o4-GG for emacs-devel@gnu.org; Mon, 30 Oct 2006 08:33:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GeXGj-0005mH-SE for emacs-devel@gnu.org; Mon, 30 Oct 2006 08:33:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GeXGj-0005li-8t for emacs-devel@gnu.org; Mon, 30 Oct 2006 08:33:37 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GeXGj-0007l3-4u for emacs-devel@gnu.org; Mon, 30 Oct 2006 08:33:37 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GeXGh-000275-MB; Mon, 30 Oct 2006 08:33:35 -0500 Original-To: "Juanma Barranquero" In-reply-to: (lekktu@gmail.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61385 Archived-At: But your proposed (random 'random), if I'm understanding you, would save the seed, return a value, then restore the seed. For that to be useful, it'd have to be (random N 'random). You are right. It would have to be able to take two arguments. I very much doubt the result is hardly random enough; in fact, getpid() + time(NULL) is bound to return the same value for a lot of consecutive calls... To make that useful we'd need a way to get N values at once from random. That is a good point also. But I think that's all unnecessary right now. As others have pointed out, several packages already do initialize the random seed for trivial reasons; I see no harm in doing the same in server.el. Ok.