On Sun, Aug 29, 2021 at 10:55 AM Stig Korsnes <stigkors...@gmail.com> wrote:
> I am indeed making ~200-1000 generator instances.As many as I have > processes. Each process is an instance of a component class , which has a > generator. Every time i ask this process for 1m numbers, i need the same 1m > numbers. I could instead make a new generator with same seed every time I > ask for for the 1m numbers, but presumed that this would be more > computationally expensive than setting state on an existing generator. > Nominally, but it's overwhelmed by the actual computation. You will have less to juggle if you just compute it from the key each time. -- Robert Kern
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion