• conrad's avatar
    Refactor oggz_get_serialno_new() to avoid using library rand()/random(). · 4df668bb
    conrad authored
    Instead, it generates a pseudorandom serialno on request, ensuring that the
    number selected is not -1 or the serialno of an existing logical bitstream.
    NB. This inlines a simple linear congruential generator to avoid problems
    of portability of rand() vs. the POSIX random()/initstate()/getstate(), and
    in the case of rand() in order to avoid interfering with the random number
    sequence. Adapated from a patch by Erik de Castro Lopo, July 2007.
    
    
    git-svn-id: http://svn.annodex.net/liboggz/trunk@3174 8158c8cd-e7e1-0310-9fa4-c5954c97daef
    4df668bb
configure.ac 11.9 KB