1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-23 16:53:04 +02:00

Don't use random as it might give a standard UUID

This commit is contained in:
Erik Johansson
2018-11-17 13:21:18 +01:00
parent ac8d83e6a7
commit ba0299a49b

View File

@@ -41,7 +41,7 @@ public class BluetoothGattUuidTest {
assertEquals("0x00010000",
BluetoothGattUuid.prettyPrint(BluetoothGattUuid.fromShortCode(0x10000)));
final UUID uuid = UUID.randomUUID();
final UUID uuid = UUID.fromString("12345678-1234-5678-9012-123456789012");
assertEquals(uuid.toString(), BluetoothGattUuid.prettyPrint(uuid));
}
}