From owner-cvs-src@FreeBSD.ORG Fri Aug 1 09:23:25 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B8DB37B401; Fri, 1 Aug 2003 09:23:25 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C00F43FBD; Fri, 1 Aug 2003 09:23:24 -0700 (PDT) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h71GNO0U096037; Fri, 1 Aug 2003 09:23:24 -0700 (PDT) (envelope-from das@repoman.freebsd.org) Received: (from das@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h71GNOon096036; Fri, 1 Aug 2003 09:23:24 -0700 (PDT) Message-Id: <200308011623.h71GNOon096036@repoman.freebsd.org> From: David Schultz Date: Fri, 1 Aug 2003 09:23:24 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/jot jot.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2003 16:23:25 -0000 das 2003/08/01 09:23:24 PDT FreeBSD src repository Modified files: usr.bin/jot jot.c Log: Fix jot so that 'jot -r -w %d 1 1 4' never prints 4. Previously, it would print it with probability 1/2**32. It seems that the correct behavior is to print 4 with probability 1/4, but I'd like to avoid breaking POLA until all the range inconsistencies in jot can be fixed in one pass. See PR for details. PR: 54878 Submitted by: David Brinegar Revision Changes Path 1.25 +1 -1 src/usr.bin/jot/jot.c