From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Back to emacsclient/server Date: Fri, 27 Oct 2006 13:21:51 +0100 Message-ID: <4541F9DF.40902@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161951874 24922 80.91.229.2 (27 Oct 2006 12:24:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2006 12:24:34 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 27 14:24:32 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 1GdQjX-0000Aq-1U for ged-emacs-devel@m.gmane.org; Fri, 27 Oct 2006 14:22:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdQjW-00081p-Gh for ged-emacs-devel@m.gmane.org; Fri, 27 Oct 2006 08:22:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GdQjI-0007zr-LI for emacs-devel@gnu.org; Fri, 27 Oct 2006 08:22:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GdQjE-0007tj-HL for emacs-devel@gnu.org; Fri, 27 Oct 2006 08:22:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdQjE-0007tR-1G for emacs-devel@gnu.org; Fri, 27 Oct 2006 08:22:28 -0400 Original-Received: from [213.86.207.50] (helo=exchange.integrasp.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GdQjD-0001fB-Rc for emacs-devel@gnu.org; Fri, 27 Oct 2006 08:22:28 -0400 Original-Received: from [192.168.111.61] (localhost [127.0.0.1]) by exchange.integrasp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id TPPWTGHS; Fri, 27 Oct 2006 13:12:30 +0100 Original-Received: from 192.168.111.61 ([192.168.111.61] helo=[192.168.111.61]) by ASSP-nospam; 27 Oct 2006 13:12:30 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666 Original-To: Juanma Barranquero In-Reply-To: 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:61232 Archived-At: Juanma Barranquero wrote: > - server.el generates the authentication string with `random', but > Emacs uses the same seed every time. I'm reluctant to call (random t) > in server.el; Emacs doesn't do it for a good reason (repeatability). I don't think repeatability is realistic within Emacs, because a Lisp function cannot have any control over other functions that might have called random before it. If repeatability is desired, then we need a function to set the random seed to a known value, so Lisp code that requires repeatability can call it at the start of its psuedorandom number generation. As far as I can tell, no such function exists.