From owner-freebsd-bugs@FreeBSD.ORG Tue Aug 10 10:00:19 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96CB6106566B for ; Tue, 10 Aug 2010 10:00:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 873318FC15 for ; Tue, 10 Aug 2010 10:00:19 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7AA0J16035099 for ; Tue, 10 Aug 2010 10:00:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7AA0JSq035098; Tue, 10 Aug 2010 10:00:19 GMT (envelope-from gnats) Date: Tue, 10 Aug 2010 10:00:19 GMT Message-Id: <201008101000.o7AA0JSq035098@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Alexander Best Cc: Subject: Re: bin/15205: [patch] Addition to random(6) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Best List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2010 10:00:19 -0000 The following reply was made to PR bin/15205; it has been noted by GNATS. From: Alexander Best To: Chip Camden Cc: bug-followup@freebsd.org Subject: Re: bin/15205: [patch] Addition to random(6) Date: Tue, 10 Aug 2010 09:55:04 +0000 On Mon Aug 9 10, Chip Camden wrote: > Quoth Alexander Best on Tuesday, 10 August 2010: > > could you provide an example how to reproduce the same output (ls /bin | random -s 8) with an unpatched copy of ranom? > > > > cheers. > > alex > > > > -- > > a13x > > > Sure: > > ls /bin | random 8 i don't think this reproduces the exact ouput as `ls /bin | random -s 8`. `random 8` will print each input line with a probability of 1/8th. `random -s 8` on the other hand will print a random line out of every 8 lines of input. this means that for a static number of input lines `random -s 8` will always produce the same number of output lines, wheras the number of lines returned by `random 8` will be different for each run. cheers alex ps: please keep bug-followup@ in the CC field so our conversation gets archived by GNATS. > > -- > Sterling (Chip) Camden | sterling@camdensoftware.com | 2048D/3A978E4F > http://camdensoftware.com | http://chipstips.com | http://chipsquips.com -- a13x