Re: permuate lines in random

2014-12-22 Thread Theo de Raadt
> On Mon, 22 Dec 2014, Ted Unangst wrote: > > > I would like to generate a permutation of some lines. We have random, > > which is vageuly similar. This adds a -p option to instead permute > > instead of randomly select. > > > + for (j = numlines; j > 1; j--) { > > + size_t s = arc4ra

Re: permuate lines in random

2014-12-22 Thread Damien Miller
On Mon, 22 Dec 2014, Ted Unangst wrote: > I would like to generate a permutation of some lines. We have random, > which is vageuly similar. This adds a -p option to instead permute > instead of randomly select. > + for (j = numlines; j > 1; j--) { > + size_t s = arc4random_uniform

permuate lines in random

2014-12-22 Thread Ted Unangst
I would like to generate a permutation of some lines. We have random, which is vageuly similar. This adds a -p option to instead permute instead of randomly select. Index: random.6 === RCS file: /cvs/src/games/random/random.6,v retrie