test/test_pcm: use C++11 random instead of GLib

This commit is contained in:
Max Kellermann
2013-10-19 15:05:48 +02:00
parent 8e063829c4
commit 7cb803ad5c
5 changed files with 28 additions and 20 deletions

View File

@@ -22,7 +22,7 @@
#include "test_pcm_util.hxx"
#include "pcm/PcmMix.hxx"
template<typename T, SampleFormat format, typename G=GlibRandomInt<T>>
template<typename T, SampleFormat format, typename G=RandomInt<T>>
static void
TestPcmMix(G g=G())
{
@@ -72,7 +72,7 @@ PcmMixTest::TestMix16()
void
PcmMixTest::TestMix24()
{
TestPcmMix<int32_t, SampleFormat::S24_P32>(GlibRandomInt24());
TestPcmMix<int32_t, SampleFormat::S24_P32>(RandomInt24());
}
void