Re:Java Puzzle: Square Root
by raylu on Tuesday March 19, 2013 @11:14PM
(#5405392)
SquareRoot.n is static, so it runs before any code in your main().
[ Parent
| on HN ]
Re:Java Puzzle: Square Root
by cromwellian on Tuesday March 19, 2013 @11:18PM
(#5405404)
Java Service Providers (SPI) trigger before main() is run. You can create a SecureRandom() provider, add it to the classpath with SPI, removing other providers.