Even more elegant random numbers?
1 unresolved thread
1 unresolved thread
Compare changes
Beginning with 2nd June, only the "Single Sign On" option for login to the GitLab web interface will be possible. If you don't have an MPCDF wide second factor so far, please get one at our SelfService (https://selfservice.mpcdf.mpg.de). The GitLab internal second factor will not work.
Having to manually push
and pop
SeedSequences to the internal stack of the random
module promises to be a bit error-prone, because it's easy to forget the pop
operation.
What do you think about using a context manager like I'm demonstrating in a few cases in test_random.py
?
If you like it, I'll use the new construct in all places where it's appropriate.