[FFmpeg-cvslog] r23302 - trunk/libavformat/oggenc.c

Janne Grunau janne-ffmpeg
Wed May 26 09:51:50 CEST 2010


On Tue, May 25, 2010 at 09:07:02PM +0200, Reimar D?ffinger wrote:
> 
> The next thing that is unclear is what kind of distribution the random number
> generator should have.
> If there is no need for it to be uniform, the "potentially infinite"
> loop could be avoided (though I haven't thought of a really nice way yet).

random offset + stream_index * prime number % 2^32

should work for primes > 2

Janne



More information about the ffmpeg-cvslog mailing list