Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why not generate random data then read it? Or even a constant, then read it?


Because the compiler will optimize it out. Even if you return the random data / constant the compiler will optimize out the store to the variable and just pass it through directly.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: