summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2016-09-13 00:02:39 +0100
committerMatthew Hodgson <matthew@matrix.org>2016-09-13 00:02:39 +0100
commitedbcb4152bd093ce2d77d44babb0e61de5362c5d (patch)
tree8eb2c71ef19c8563e7c2a9baf0cc4cea2ac4436d /synapse
parentMerge pull request #1100 from VShell/fix-cas (diff)
downloadsynapse-edbcb4152bd093ce2d77d44babb0e61de5362c5d.tar.xz
make device IDs more useful for human disambiguation
Diffstat (limited to 'synapse')
-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,