replace randomName() with randomMachineName(), replace deprecated function.