Thanks, I dug a bit in the code starting from issue 88576 you linked, and it looks to me that things have been rearranged and support for Generators removed. This PR removed the lines mentioned in issue 88576. From what I understand the current handling of random functions in dynamo is at replace_random.py (see PR 100064). And from what I understand Generators are not handled and only the global seed can be used, I’m not sure if there’s some alternative, or if there are further discussions somewhere, it would be nice to have some mechanism to manage an RNG or have some equivalent method.