[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shred bug?



On Sat, Feb 10, 2024 at 02:58:06PM +0100, Thomas Schmitt wrote:
> Hi,
> 
> tomas@tuxteam.de wrote:
> > Ah, it seems to be this one, from 2002:
> >  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=155175
> 
> So it's not a bug but a feature. :(
> 
> I'm riddling over the code about the connection to an old graphics
> algorithm (Bresenham's Algorithm) and how shred produces a random pattern
> at all.

This [1] perhaps? It's not a good random generator (and not crypto,
by a long stretch) but it's pretty well equidistributed, ain't it?

Cheers

[1] https://en.wikipedia.org/wiki/Lehmer_random_number_generator
-- 
t

Attachment: signature.asc
Description: PGP signature


Reply to: