title: How to make dill deterministic?
body: <p>We intend to use dill to generate a hash of a function.
  Our previous approach was using bytecode, but it is slower and it is an extra unnecessary step if we decide to unpickle the function in the future.
  The output of successive calls is as follows:</p>
  <pre><code>import dill as d
  from hashlib import md5
  md5(d.dumps(lambda x: {&quot;y&quot;: x+2})).hexdigest()
  # output: 'f063cdd725f0e6f5a1d211925a1024b1'
  
  import dill as d
  from hashlib import md5
  md5(d.dumps(lambda x: {&quot;y&quot;: x+2})).hexdigest()
  # output: 'ea85fa41e85f0c78c54bbe0e00e55798'
  </code></pre>