def create_profile(self, user, *args, **kwargs):
        salt = hashlib.sha1(str(random.random())).hexdigest()[:5]
        activation_key = hashlib.sha1(salt + user.username).hexdigest()
        return self.create(user=user, activation_key=activation_key, **kwargs)
.. todo::
dataset/ETHPy150Open mozilla/kitsune/kitsune/users/models.py/ConfirmationManager.create_profile--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/s3c.py/S3C.__call__