]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Remove prng initialisation code -- it's not needed
authorMike Brady <mikebrady@eircom.net>
Wed, 7 Sep 2016 08:14:35 +0000 (09:14 +0100)
committerMike Brady <mikebrady@eircom.net>
Wed, 7 Sep 2016 08:14:35 +0000 (09:14 +0100)
shairport.c

index 050338d886a4da83f60d0c75e34f6a69ea25c053..1b746922b1af298ce84e055fb253fdc908efaf1c 100644 (file)
@@ -54,7 +54,6 @@
 #include "rtsp.h"
 #include "rtp.h"
 #include "mdns.h"
-#include "mt64.h" // 64-bit prng
 
 #include <libdaemon/dfork.h>
 #include <libdaemon/dsignal.h>
@@ -779,14 +778,6 @@ int main(int argc, char **argv) {
  #ifdef HAVE_APPLE_ALAC
   config.decoders_supported += 1<<decoder_apple_alac;
  #endif
- // here, initialise the 64-bit random number generator
- // from mt19937-64test.c in the archive downloaded http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/mt19937-64stdint.tgz
- // from http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt64.html
-    uint64_t init[4]={UINT64_C(0x12345), UINT64_C(0x23456), UINT64_C(0x34567), UINT64_C(0x45678)}, length=4;
-    init_by_array64(init, length);
-
 
   /* Check if we are called with -V or --version parameter */
   if (argc >= 2 && ((strcmp(argv[1], "-V") == 0) || (strcmp(argv[1], "--version") == 0))) {