We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Disable manual register() ids in syft.grid.register()
**Is your feature request related to a problem? Please describe.**
It is a security risk for people to specify their own IDs given that GridNetwork will let you connect to anyone whose id you already know. Thus, we should disable the ability for people to specify their own ID and replace it with a randomly generated hash.

This hash should be printed with clear instructions ("Send this to whomever you'd like to connect with") when register() is called.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `syft/grid/__init__.py`
Content:
```
1 from .network import Network
2 
3 DEFAULT_NETWORK_URL = "ws://ec2-13-59-45-128.us-east-2.compute.amazonaws.com"
4 
5 
6 def register(node_id: str, **kwargs):
7     """ Add this process as a new peer registering it in the grid network.
8         
9         Args:
10             node_id: Id used to identify this node.
11         Returns:
12             peer: Peer Network instance.
13     """
14     if not kwargs:
15         args = args = {"max_size": None, "timeout": 444, "url": DEFAULT_NETWORK_URL}
16     else:
17         args = kwargs
18 
19     peer = Network(node_id, **args)
20     peer.start()
21     return peer
22
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/syft/grid/__init__.py b/syft/grid/__init__.py
--- a/syft/grid/__init__.py
+++ b/syft/grid/__init__.py
@@ -1,13 +1,12 @@
 from .network import Network
+import uuid
 
 DEFAULT_NETWORK_URL = "ws://ec2-13-59-45-128.us-east-2.compute.amazonaws.com"
 
 
-def register(node_id: str, **kwargs):
+def register(**kwargs):
     """ Add this process as a new peer registering it in the grid network.
         
-        Args:
-            node_id: Id used to identify this node.
         Returns:
             peer: Peer Network instance.
     """
@@ -16,6 +15,8 @@
     else:
         args = kwargs
 
-    peer = Network(node_id, **args)
+    peer_id = str(uuid.uuid4())
+    peer = Network(peer_id, **args)
     peer.start()
+
     return peer

{"golden_diff": "diff --git a/syft/grid/__init__.py b/syft/grid/__init__.py\n--- a/syft/grid/__init__.py\n+++ b/syft/grid/__init__.py\n@@ -1,13 +1,12 @@\n from .network import Network\n+import uuid\n \n DEFAULT_NETWORK_URL = \"ws://ec2-13-59-45-128.us-east-2.compute.amazonaws.com\"\n \n \n-def register(node_id: str, **kwargs):\n+def register(**kwargs):\n     \"\"\" Add this process as a new peer registering it in the grid network.\n         \n-        Args:\n-            node_id: Id used to identify this node.\n         Returns:\n             peer: Peer Network instance.\n     \"\"\"\n@@ -16,6 +15,8 @@\n     else:\n         args = kwargs\n \n-    peer = Network(node_id, **args)\n+    peer_id = str(uuid.uuid4())\n+    peer = Network(peer_id, **args)\n     peer.start()\n+\n     return peer\n", "issue": "Disable manual register() ids in syft.grid.register()\n**Is your feature request related to a problem? Please describe.**\r\nIt is a security risk for people to specify their own IDs given that GridNetwork will let you connect to anyone whose id you already know. Thus, we should disable the ability for people to specify their own ID and replace it with a randomly generated hash.\r\n\r\nThis hash should be printed with clear instructions (\"Send this to whomever you'd like to connect with\") when register() is called.\n", "before_files": [{"content": "from .network import Network\n\nDEFAULT_NETWORK_URL = \"ws://ec2-13-59-45-128.us-east-2.compute.amazonaws.com\"\n\n\ndef register(node_id: str, **kwargs):\n    \"\"\" Add this process as a new peer registering it in the grid network.\n        \n        Args:\n            node_id: Id used to identify this node.\n        Returns:\n            peer: Peer Network instance.\n    \"\"\"\n    if not kwargs:\n        args = args = {\"max_size\": None, \"timeout\": 444, \"url\": DEFAULT_NETWORK_URL}\n    else:\n        args = kwargs\n\n    peer = Network(node_id, **args)\n    peer.start()\n    return peer\n", "path": "syft/grid/__init__.py"}], "after_files": [{"content": "from .network import Network\nimport uuid\n\nDEFAULT_NETWORK_URL = \"ws://ec2-13-59-45-128.us-east-2.compute.amazonaws.com\"\n\n\ndef register(**kwargs):\n    \"\"\" Add this process as a new peer registering it in the grid network.\n        \n        Returns:\n            peer: Peer Network instance.\n    \"\"\"\n    if not kwargs:\n        args = args = {\"max_size\": None, \"timeout\": 444, \"url\": DEFAULT_NETWORK_URL}\n    else:\n        args = kwargs\n\n    peer_id = str(uuid.uuid4())\n    peer = Network(peer_id, **args)\n    peer.start()\n\n    return peer\n", "path": "syft/grid/__init__.py"}]}