Set an explicit random hashseed for tests in CI (#3072)
Set an explicit random hashseed for tests in CI (#3072)

* Set an explicit random hashseed for tests in CI

The python hash seed is used to control the seed for the hash() function
for types covered by hash randomization. If we encounter errors around
ordering for things like iterating over dictionaries to reproduce
failures locally it is useful to know what the hash seed was. However,
to ensure the code is robust we still want to have a random value for
the hash seed to make sure things aren't dependent on a single order.
This commit accomplishes this by explicitly selecting a random number
and setting that to the value of PYTHONHASHSEED. This value is then
printed right before we run the tests. This way if we encounter an issue
around ordering we can try and reproduce it locally.

* Use python for random number instead of shuf

* Fix typo

QISKit/qiskit-sdk-py,QISKit/qiskit-sdk-py,QISKit/qiskit-sdk-py