Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ikeboy
on June 12, 2015
|
parent
|
context
|
favorite
| on:
Being Sneaky in C
Why not generate random data then read it? Or even a constant, then read it?
TheLoneWolfling
on June 12, 2015
[–]
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: