flat assembler
Message board for the users of flat assembler.
Index
> Windows > trying to find out what sort of PRNG this is |
Author |
|
adnimo 25 Jul 2008, 16:09
I have an exe that calls a PRNG but I don't know the name of this algorithm, could someone take a look at the asm dump of the exe and tell me if it rings a bell?, I know there are many advanced assembly programmers in here that could spot this sort of thing but I don't know how feasible it is since it might take some time to do so and time isn't cheap
But just in case, this is the dump: http://pastebin.com/f2a720984 To get you started, the decimal number 1000 is passed to the routine, so it all begins under SUB_L00402079. From my limited experience and point of view, it doesn't look like a mersenne twister to me, but it seems to outperform many other PRNGs in both speed and output. The reason I want to know what algorithm this is, is simply to read more about it, try to implement my own version of it, see how it goes. Could it be an extended congruential algorithm? Any clues onto what algo this is will be greatly appreciated Thanks. |
|||
25 Jul 2008, 16:09 |
|
bitRAKE 25 Jul 2008, 22:01
Might be a Park-Miller variant?
Nah, looks like two LCG's overlapped? _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
25 Jul 2008, 22:01 |
|
AlexP 26 Jul 2008, 16:34
It could just be a custom RNG, not too uncommon
|
|||
26 Jul 2008, 16:34 |
|
f0dder 31 Jul 2008, 14:24
Why not try asking the person who wrote the program you snipped this from?
|
|||
31 Jul 2008, 14:24 |
|
Madis731 31 Jul 2008, 19:19
Isn't lagged-Fibonaci slow? (not that I've actually tested or anything...)
|
|||
31 Jul 2008, 19:19 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.