Hacker News new | past | comments | ask | show | jobs | submit login

I’m assuming here that ”generator” has a decent enough constructor that seeds it properly. If it doesn’t, and you have to cycle it a few times to ”warm it up”, it’s not much more complicated, just factor out the initialization code into a function or lambda and use that to initialize the thread_local.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: