import hashlib


def gen_robohash(s, size=200):
    """Return URL for robohash pic for sha1 hash of string ``s``"""
    h = hashlib.sha1(s).hexdigest()
    return ('http://robohash.org/{0}.png?size={1}x{1}&bgset=bg2&set=set1'
            .format(h, size))