Skip to content

Instantly share code, notes, and snippets.

@stiletto
Created April 2, 2016 13:56
Show Gist options
  • Save stiletto/72c16001455917207a8698e4525f657c to your computer and use it in GitHub Desktop.
Save stiletto/72c16001455917207a8698e4525f657c to your computer and use it in GitHub Desktop.
Заменитель никнеймов бнвача с «первоапрелькой содомии 2016» на бнваче
import hashlib
nicknames = [ "greenbastad",
"ckorzhik",
"ruki",
"je",
"goren",
"manul",
"zhc",
"padavanchik",
"anoos",
"l29ah",
"postman",
"j123123",
"ceyt",
"hate-engine",
"kero",
"lexszero",
"anon10018",
"kuro",
"kuzy000",
"ojab",
"windowsadmin",
"stilettonebanplz",
"heroin",
"fix",
"ns",
"lich",
"corpse",
"zerg",
"soko1",
"zrg",
"ndtimofeev",
"proctolog",
"mugiseyebrows",
"minoru",
"mordeladze",
"kerrigan",
"hirthwork",
"figli",
"fuck",
"arkada",
"sin-ok",
"krkm",
"tigrch",
"n",
"shaggoth",
"plhk",
"xenomorph",
"naurlaunim",
"kb",
"anarchy",
"8",
"voker57",
"like-all",
"kotokrat",
"lvsn",
"theodor",
"dluciv",
"geladil",
"hdghg",
"ccahnha",
"sanovach",
"ninesigns",
"zero-one",
"ygrek",
"kolyan_ufalug_",
"nebeda",
"psydiot",
"klava",
"bagalamukhidevi",
"failman",
"zepp",
"mellon",
"mugi",
"manik",
"firewolk",
"silvery",
"fanerozoi",
"contemplator",
"partizan",
"argonov",
"mda",
"grouzen",
"kogda",
"_",
"oxyd",
"dulo_t-34",
"omsklug",
"cxqy",
"zatoni",
"raegdan",
"komar",
"dzhon",
"waterlaz",
"dolf1212",
"cosmic",
"xl0",
"hongweibing",
"pusya",
"kosc",
"parentalcontrol",
"openbsd",
"anonim",
"nonn",
"gmind",
"dy",
"seab",
"welcome_bot",
"leo",
"katsuk",
"cryptocommune",
"usagi",
"mw",
"apepe",
"dartmol2",
"pinky",
"anonymous",
]
def getname(n):
return nicknames[int(hashlib.md5(n).hexdigest()[:8],16)%len(nicknames)]
if __name__=="__main__":
import timeit
N=1000000
print(timeit.timeit("getname('shit')", setup="from __main__ import getname", number=N)/(N*1E-3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment