From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: Re: Improve `seed->random-state' in stable-2.0? Date: Fri, 20 Jan 2012 15:46:04 -0800 (PST) Message-ID: <1327103164.6054.YahooMailNeo@web37901.mail.mud.yahoo.com> References: <87d3afvyr6.fsf@netris.org> <87ipk6tof0.fsf@pobox.com> <878vl2w6ig.fsf@netris.org> <874nvqt8n0.fsf@pobox.com> Reply-To: Mike Gran NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1327103175 19824 80.91.229.12 (20 Jan 2012 23:46:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2012 23:46:15 +0000 (UTC) Cc: "guile-devel@gnu.org" To: Andy Wingo , Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jan 21 00:46:11 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RoO9r-0007sS-8M for guile-devel@m.gmane.org; Sat, 21 Jan 2012 00:46:11 +0100 Original-Received: from localhost ([::1]:47082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoO9q-0007Uf-Fd for guile-devel@m.gmane.org; Fri, 20 Jan 2012 18:46:10 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoO9n-0007UM-7i for guile-devel@gnu.org; Fri, 20 Jan 2012 18:46:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoO9l-0004Sy-Ut for guile-devel@gnu.org; Fri, 20 Jan 2012 18:46:07 -0500 Original-Received: from nm25.bullet.mail.ac4.yahoo.com ([98.139.52.222]:27618) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RoO9l-0004SE-ME for guile-devel@gnu.org; Fri, 20 Jan 2012 18:46:05 -0500 Original-Received: from [98.139.52.195] by nm25.bullet.mail.ac4.yahoo.com with NNFMP; 20 Jan 2012 23:46:04 -0000 Original-Received: from [98.139.52.170] by tm8.bullet.mail.ac4.yahoo.com with NNFMP; 20 Jan 2012 23:46:04 -0000 Original-Received: from [127.0.0.1] by omp1053.mail.ac4.yahoo.com with NNFMP; 20 Jan 2012 23:46:04 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 931615.26512.bm@omp1053.mail.ac4.yahoo.com Original-Received: (qmail 9132 invoked by uid 60001); 20 Jan 2012 23:46:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1327103164; bh=0bKDhKptjR7+jaIQXA8pRjinRZRyYNDtl44plktqB3I=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bPDK4gSNw6qIXckhmarnnq27ZWe60SLhxJzboQXHYAoqmFeri1ewqpuQh1T8DW7roUs6ZoBENUuTtA+G0glgrSyF5uKxTmIQMGK+bUU0gs3rBxeFrUUE8vNCGL98HtyFyVC5CDVyJISfkvsJeEqgU7WOlCCIOnDL7YI6qko/G9E= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=eEZ++8QRLRVJWOS2BOyhnIcb3STU/XOfJMGTduh5iAX66lWhk1iShpWRR3X92OxAjDSSIskGRSqBgYmG9qyOfnvvUxWb6CVcHYQus87pYgs9b5/VsjVQYC106s5vKJAl9Bu/ERjVcbJYZYXOFLNL5CcaPX3CBA7+aP9JtNBmJPs=; X-YMail-OSG: hFONz8QVM1nbGbHqMey.JGCb3HqI0kOWgtFotB2TkBuNsX1 PY_JokXznQSBy21qeo9CTa7GdzUu6r0lrXeSds4DiKfGuK_yfjK3CIF7TEyR cQROOEBozREqA6ZCvdHUeR9c42TMmZCGGQm216h3xtYlq9LVlFZWK854y7v7 h964F1okThkQCejjDQY2jsQGWHji2pFHNf9VIQ7.LuOKohCeBeLs6utFG_VN COfgM4gVf4R1L87wHq7l8rMOe5xv5Rr_iLA5ZMRw9.L9bIbD8xjblgCTr7b1 MOn_utOMOHaslvfn8aDQYHYzYYI9Etux.h7nWHzV47gfjDaDMP3mM_FP9VKZ JYJglSxsYyFHfclJNK7yuWWmug0p.tj23a_AMkmLE7bGTKpjibd2vkNwFR3l 3HC_NsUIf.lVtXKURy4YJfjzGWPX_52fCJuQIX3y6e..J8Akqm0upcyI8aHz jGI24mXYpGQb1GpOEuAkv8c9FNbheB510tjM- Original-Received: from [66.80.183.50] by web37901.mail.mud.yahoo.com via HTTP; Fri, 20 Jan 2012 15:46:04 PST X-Mailer: YahooMailWebService/0.8.116.331537 In-Reply-To: <874nvqt8n0.fsf@pobox.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 98.139.52.222 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:13613 Archived-At: > From: Andy Wingo wingo@pobox.com=0A=0A>How about, we extend seed->random-= state to operate on bytevectors, and=0A>have that interface do the right th= ing.=A0 We deprecate the number=0A>interface.=A0 At some point in the futur= e we deprecate the string=0A>interface as well.=0A=0AThe number or string a= rgument to seed->random-state is not unique to=0AGuile.=A0 Slib uses it, to= o.=0A=A0=0AThe string argument always seemed strange to me and seems to be = seldom=0Aused.=A0 But a websearch says that the integer argument is quite c= ommon.=0A=A0=0A(seed->random-state (current-time)) seems to be a common idi= om that=0Ayou would end up breaking.=0A=A0=0ARegards,=0A=A0=0AMike