From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: random doesn't feel very random Date: Fri, 31 Aug 2012 20:50:53 +0300 Message-ID: <83txvjosqq.fsf@gnu.org> References: <876288yh72.fsf@kanis.fr> <87wr0livd4.fsf@Rainer.invalid> <87lih0ykue.fsf@Rainer.invalid> <83ipbzqtxe.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1346435473 9836 80.91.229.3 (31 Aug 2012 17:51:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2012 17:51:13 +0000 (UTC) Cc: Stromeko@nexgo.de, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 31 19:51:14 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T7VN5-0004ZH-UE for ged-emacs-devel@m.gmane.org; Fri, 31 Aug 2012 19:51:08 +0200 Original-Received: from localhost ([::1]:37410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7VN3-0001sE-Jw for ged-emacs-devel@m.gmane.org; Fri, 31 Aug 2012 13:51:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7VN1-0001s5-9x for emacs-devel@gnu.org; Fri, 31 Aug 2012 13:51:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7VN0-00021P-A7 for emacs-devel@gnu.org; Fri, 31 Aug 2012 13:51:03 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:35911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7VN0-000209-1e for emacs-devel@gnu.org; Fri, 31 Aug 2012 13:51:02 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M9M00I00S3T6J00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 31 Aug 2012 20:50:53 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M9M00ICDS8S6T00@a-mtaout20.012.net.il>; Fri, 31 Aug 2012 20:50:53 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152918 Archived-At: > From: Stefan Monnier > Cc: Achim Gratz , emacs-devel@gnu.org > Date: Fri, 31 Aug 2012 11:07:10 -0400 > > > IMO, it would be better to fix the packages that misuse '(random t)'. > > How? Like you suggested: > So to fix those bugs, we have to: > - change Emacs's initialization so that it seeds its PRNG. > - eliminate most/all calls to (random t), which is best done by changing > `random' to do nothing when called with argument t (after all, > re-seeding wouldn't make it less predictable anyway).