rtmpdh: Do not generate the same private key every time when using libnettle
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 16 Aug 2012 20:27:15 +0000 (22:27 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 17 Aug 2012 20:51:53 +0000 (23:51 +0300)
commit8337b5db967ecadab4bb65c272cb47d350ecb83b
treeaa0f9c51f96baa4ceb30a00f3edffe1b049ac5a0
parenta2dd4f7780f5b968067d3db728ac64ae444eedab
rtmpdh: Do not generate the same private key every time when using libnettle

Replace mpz_random by mpz_urandomb with a random state initialization in
order to improve the randomness.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpdh.c