guess what this function does
category: general [glöplog]
jawohl, mein führer!
No problem. Magic is now controlling all articles. :)
well this one is most likely the simplest one here, but i can't think of anything else as this was right in front of me. variable names are obfuscated intentionally.
Code:
float sex()
{
union
{
unsigned f;
float r;
};
s = ((((s ^ (s << 0x0D)) ^ (s >> 0x11)) ^ (s << 0x05)) >> 0x09) | 0x3F800000;
return (f - 1.0f);
}
shit... make the first s f and you're there :)
and of course that last f, r... man i should get some sleep :/
Decipher: An XOR pattern?
no
Shouldn't it have some arguments too? ;)
It determines whether your stack is male or female.
decipher: after staring at it for 10 seconds and sorting out the bugs... random generator for floats in the 0..1 range?
That function adds a thread at pouet's bbs. Works flawlessly I say!
kb: you got it, although i was coding it at the same time i was posting it here for a tUM release, thus the bugs :)