summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@arasphere.net>2016-09-14 01:18:02 +0100
committerGitHub <noreply@github.com>2016-09-14 01:18:02 +0100
commit1b01488d27a1acb9938517168477608ace89c017 (patch)
tree3ae3d7f2ed86017eab90354c083298702b18f770 /synapse/handlers
parentMerge pull request #1116 from matrix-org/paul/tiny-fixes (diff)
parentmake device IDs more useful for human disambiguation (diff)
downloadsynapse-1b01488d27a1acb9938517168477608ace89c017.tar.xz
Merge pull request #1111 from matrix-org/matthew/device-ids
make device IDs more useful for human disambiguation
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/device.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py
index 8d630c6b1a..aa68755936 100644
--- a/synapse/handlers/device.py
+++ b/synapse/handlers/device.py
@@ -58,7 +58,7 @@ class DeviceHandler(BaseHandler):
         attempts = 0
         while attempts < 5:
             try:
-                device_id = stringutils.random_string_with_symbols(16)
+                device_id = stringutils.random_string(10).upper()
                 yield self.store.store_device(
                     user_id=user_id,
                     device_id=device_id,