Don't forget to initialize random generator for TCP connections