use random number generator from libavutil