From owner-freebsd-current Mon Feb 3 3: 2: 7 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95C7D37B401; Mon, 3 Feb 2003 03:02:06 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 358FC43FAF; Mon, 3 Feb 2003 03:01:58 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h13B1uLf013270; Mon, 3 Feb 2003 11:01:56 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h13B1uLH013269; Mon, 3 Feb 2003 11:01:56 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h13AtgaX058602; Mon, 3 Feb 2003 12:55:42 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302031055.h13AtgaX058602@grimreaper.grondar.org> To: "Andrey A. Chernov" Cc: Kris Kennaway , Tim Robbins , current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) In-Reply-To: Your message of "Mon, 03 Feb 2003 01:26:36 +0300." <20030202222635.GA68806@nagual.pp.ru> Date: Mon, 03 Feb 2003 10:55:42 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > > If I understand correctly, this still doesn't solve the problem, > > because any PRNG sequence that hits the "magic" value will still get > > stuck there forever. > > It was true for the first patch I post which just move problem to another= > > place (this is commonly spreaded method for this PRNG). > > It is false for the last patch I post which not stuck with any given seed. How do you _know_ that your newly chosen magic number isn't going to cause some kind of recurring (and too-short) sequence of numbers? Will it recur after 5 iterations? 100? 1000? 1000000? M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message