use lfg and ff_random_get_seed instead of deprecated av_random