• Post Reply Bookmark Topic Watch Topic
  • New Topic

NX :how to get the lock cookie?

 
Jamy Wang
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm confused about the lock cookie. I know the use of lock cookie ,but I don't know how to get it...

the method should return a lock cookie , how to get it? Just use Radom number???
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi James,
I love all questions about cookies (lock, magic, ...) !
Unfortunately, you brought the answer in your question.
Just use Random number???

Yes. And Random.nextLong() may help.
Best,
Phil.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!