Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Creates a unique hash using the data provided
and a bit of randomness

        def create_hash(data):
    """Creates a unique hash using the data provided
    and a bit of randomness
    """
    rand = ''.join([randchar() for x in range(10)])
    data += rand
    return md5(data + rand).hexdigest()
        


src/m/o/mozsvc-0.7/mozsvc/tweens.py   mozsvc(Download)
import mozsvc
from mozsvc.exceptions import BackendError
from mozsvc.middlewares import create_hash
 
 
                extra_info = "user: -"
            error_log = "%s\n%s\n%s" % (err_info, err_trace, extra_info)
            hash = create_hash(error_log)
            logger.error(hash)
            logger.error(error_log)

src/m/o/mozservices-HEAD/mozsvc/tweens.py   mozservices(Download)
import mozsvc
from mozsvc.exceptions import BackendError
from mozsvc.middlewares import create_hash
 
 
                extra_info = "user: -"
            error_log = "%s\n%s\n%s" % (err_info, err_trace, extra_info)
            hash = create_hash(error_log)
            logger.error(hash)
            logger.error(error_log)