Generating peer id