init RNG for mode socket and mpi
todos