|
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?
|