Thanks for the NSFW warning.
You're welcome. BTW, is he banned for posting NSFW stuffs?
A different algorithm compared to what? The algorithm to determine when you will be legendary was posted by theymos. It only relies on the user id and a secret hash that is identical for all users but unknown to anyone without database access.
Can you please link that post here?
Is the secret hash calculated and chosen fortnightly and in that way hero members become legendary?
Code:
Can you make getting legendary provability fair? So we know if you don't like us that we get it anyway
Nah, that'd significantly complicate things. Currently this randomness is done with a single SQL query, which is very convenient.
update smf_members set ID_POST_GROUP=21 where ID_POST_GROUP=8 and
activity>=775 and activity>=775+conv(substr(sha1(concat(ID_MEMBER,
secretSeed)), 1, 2), 16, 10);
The required activity level per user is suitably random for betting, but anyone who can read my code (there are a few such people) will be able to exactly predict when someone will become Legendary, so I don't really recommend it.
Seed is hardcoded or stored in the database (otherwise it could not be read):
Out of curiosity, how would someone who can read your code be able to accurately predict when someone will become legendary without the secret seed?
I meant that the secret seed is in the code, so if you have access to it then you'll be able to calculate the number directly.
It also cant change, because that might result in already legendary members to lose their rank.