Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
slavik81
on May 7, 2016
|
parent
|
context
|
favorite
| on:
A Taste of JavaScript's New Parallel Primitives
Yes. The problem with an in-process RNG and forking is that the RNG state is duplicated, so both processes get the same sequence of numbers. Multithreading just needs locking to prevent corruption because the state is shared.
brazzledazzle
on May 8, 2016
[–]
Thanks for taking the time to explain.
Consider applying for YC's W25 batch! Applications are open till Nov 12.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: