Hi marcus,

have a look at this

public String getRandomHexBlob() {
        Random r = new Random();
        StringBuffer sb = new StringBuffer();
        while (sb.length() < 32) {
            sb.append(Integer.toHexString(r.nextInt()));
        }

        return sb.toString().substring(0, 32).toUpperCase();
    }

On Sun, 10 May 2020 at 16:25, Mark Bolduc <[email protected]>
wrote:

> If you are experiencing an issue please mention the full platform your
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA Netbeans 11.3
> Desktop OS Windows 10 Pro
> Simulator Latest
> Device ALL
>
> How can I create a unique client identifier (GUID)
> Log.getUniqueDeviceId() is deprecated and returns -1;
>
> Thoughts?
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/d05170ce-671f-4481-abe8-aa165b3405fe%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/d05170ce-671f-4481-abe8-aa165b3405fe%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAG90yJ0_7wUhA0mMpw9wc_4fJSeuCEFV8QMKggF%2BCWvxYSh%3D9Q%40mail.gmail.com.

Reply via email to