Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does anyone know why the reentrancy layer needed malloc in the first place? I didn't understand that part.


It's used to store internal random state.


But why is the internal RNG state dynamically allocated? I would have expected it to be a static variable allocated only once.


So that you can call it in different threads or in a signal without clobbering another invocation's state.




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

Search: