Date: Tue, 10 Aug 2010 11:10:04 GMT From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/15205: [patch] Addition to random(6) Message-ID: <201008101110.o7ABA4AX005726@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/15205; it has been noted by GNATS. From: Oliver Fromme <olli@lurza.secnetix.de> To: arundel@FreeBSD.ORG (Alexander Best) Cc: sterling@camdensoftware.com (Chip Camden), bug-followup@FreeBSD.ORG Subject: Re: bin/15205: [patch] Addition to random(6) Date: Tue, 10 Aug 2010 13:06:49 +0200 (CEST) Alexander Best wrote: > On Tue Aug 10 10, Oliver Fromme wrote: > > But seriously ... If you want random 4 lines out of 32 > > (or out of any number, for that matter), the following > > command will do it: > > > > $ ls /bin | random -f - | head -4 > > indeed this is an exact replacement for ls /bin | random -s 8. In fact it's a _better_ replacement because the probability is evenly distributed across the whole input. This is not the case for the patch proposed in this PR. > > I agree that this PR can be closed. > > thanks a lot for clearing things up. i'll close the PR right away. Thanks! Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Whatever happened to the days when hacking started at the cerebral cortex, and not at the keyboard?" -- Sid on userfriendly.org by Illiad, 2007-06-20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008101110.o7ABA4AX005726>