Forum Discussion

joetesta's avatar
joetesta
Roku Guru
11 years ago

GetRandomUUID on firmware 6.2?

Hello -

I'm trying GetRandomUUID() on a Roku 3 with version 6.2 build 3672 - this is what I'm getting from debug:

Function Call Operator ( ) attempted on non-function. (runtime error &he0) in pkg:/source/appMain.brs(175)
175: myuuid = GetRandomUUID()


should this work, can anyone tell me what I'm doing wrong?
tyvmia
Joe

2 Replies

  • RokuKC's avatar
    RokuKC
    Roku Employee
    GetRandomUUID isn't a global function, but rather a function on an roDeviceInfo object.
  • Thanks for the quick reply. I updated it to look like this

    di = CreateObject("roDeviceInfo")
    myuuid = di.GetRandomUUID()


    and it's working -Thanks!