Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
joetesta
Level 10

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
aspiring
0 Kudos
2 Replies
Roku Employee
Roku Employee

Re: GetRandomUUID on firmware 6.2?

GetRandomUUID isn't a global function, but rather a function on an roDeviceInfo object.
0 Kudos
joetesta
Level 10

Re: GetRandomUUID on firmware 6.2?

Thanks for the quick reply. I updated it to look like this

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


and it's working -Thanks!
aspiring
0 Kudos