Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
uvdiv
on March 20, 2013
|
parent
|
context
|
favorite
| on:
Java Puzzle: Square Root
Force a race condition on the variable `root'.
if (n.divide(root).equals(root)) {
Try to set it to 2^20001 on the first funcall and 0 on the second.
mtpettyp
on March 20, 2013
[–]
BigInteger is immutable so this won't work
uvdiv
on March 23, 2013
|
parent
[–]
You're right! Good catch.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: