[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1726140372838588.jpg (23 KB, 382x391)
23 KB
23 KB JPG
#define TRUE rand()%100
>>
>>107058110
retard
>>
I always check the assembly output of my code. Something you have to do for high performance code.
>>
>>107058110
>not even parenthesised
truly devious
>>
#define UNDEFINED 0/0
>>
int GetRandomNumber()
{
return 7;
}
>>
Madlads, the lot of you.
>>
>>107058110
You gotta put your seed in it
>>
>>107058110
1. replace legit uses of TRUE with 1
2. insert a lot of bullshit code referencing TRUE that never gets executed
3. watch vibefags get blamed for causing unexplainable downtime
>>
#define 1 0
#define 0 1
>>
>>107058110
Isn't this wrong? Shouldn't it be %2 since %100 would mean it's true 1% of the time and false otherwise?
>>
>>107064852
That's true.
>>
>>107058331
>i totally manually check out millions of lines of assembly
sure thing buddy
>>
>>107064852
you got it backwards 0 is false, everything else is true
>>
>>107064852
should be a 1000000 really, you wouldn't want it to be caught too soon
>>
>>107061584
int GetRandomNumber()
int *ptr;
return *ptr;
[/code/
>>
>>107065008
wait a minute, is this heartbleed?
>>
>>107061584
int GetRandomNumber()
{
int number = 0;

for(int i = 0; i < Math.RandomInt(); i++)
{
number++;
}

return number;
}
>>
>>107065008
Instructions unclear.
The guidance system is stick in the ceiling fan.
>>
>>107061584
int GetRandomNumber()
{
asm("addl %esp, %eax");
}
>>
>>107065008
This tends to higher value numbers and negatives
>>
>>107066419
and we have a WINNER



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.