diff options
author | Matthew Hodgson <matthew@arasphere.net> | 2016-09-14 01:18:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-14 01:18:02 +0100 |
commit | 1b01488d27a1acb9938517168477608ace89c017 (patch) | |
tree | 3ae3d7f2ed86017eab90354c083298702b18f770 /synapse | |
parent | Merge pull request #1116 from matrix-org/paul/tiny-fixes (diff) | |
parent | make device IDs more useful for human disambiguation (diff) | |
download | synapse-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')
-rw-r--r-- | synapse/handlers/device.py | 2 |
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, |