text: /* Mixmaster version 3.1 --  (C) 1999 - 2016 Anonymizer Inc. and others.
  
     Mixmaster may be redistributed and modified under certain conditions.
     This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
     ANY KIND, either express or implied. See the file COPYRIGHT for
     details.
  
     Mixmaster DLL startup
     $Id$ */
  
  
  #include "mix3.h"
  #ifdef WIN32
  int WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved)
  {
    switch (fdwReason) {
    case DLL_PROCESS_ATTACH:
      if(!is_nt_service()) {
        rnd_state = RND_WILLSEED;
        mix_init(NULL);
        if (rnd_state == RND_WILLSEED)
  	rnd_state = RND_NOTSEEDED;
      }
      break;
    case DLL_PROCESS_DETACH:
      if(!is_nt_service())
        mix_exit();
      break;
    case DLL_THREAD_ATTACH:
    case DLL_THREAD_DETACH:
      return(0);
    }
    return(1);
  }
  #endif /* WIN32 */
  