def set_seed(func, seed=None):
def _wrapper(self, seed=seed, *args, **kwargs):<EOL><INDENT>self.__django_any_seed = seed if seed else int(time.time()*<NUM_LIT:1000>)<EOL>random.seed(self.__django_any_seed)<EOL>return func(self, *args, **kwargs)<EOL><DEDENT>return _wrapper<EOL>
Set randon seed before executing function. If seed is 
not provided current timestamp used