View Single Post
  #1 (permalink)  
Old 07-16-2007, 11:54 PM
zstars zstars is offline
Member
 
Join Date: Jul 2007
Posts: 1
zstars is on a distinguished road
JavaAgents class intercepting
Hello, I need to "hook" the Math.random() call, because I need to know the values these calls return. I don't have access to the source of the other programs, and I can't modify them because they may change often.

I am trying to use a JavaAgent to intercept the Math class and modify it, but, although the JavaAgent intercepts several classes, it doesn't seem to intercept the Math class. Does anyone know how it could be done to either intercept Math, or hook Math.random() in any other way?
Reply With Quote
Sponsored Links