diff --git a/Part2-FlushReload/attacker.c b/Part2-FlushReload/attacker.c index 625bf61..1d32ffb 100644 --- a/Part2-FlushReload/attacker.c +++ b/Part2-FlushReload/attacker.c @@ -24,7 +24,7 @@ int main() { for(int i = 0; i < 1024; i++) { CYCLES time = measure_one_block_access_time((ADDR_PTR)buf + (i * 10020107) % 1024 * 128); if(time < CACHE_HIT_THRESHOLD) { - flag = i; + flag = (i * 10020107) % 1024; break; } }