Re: [css-houdini-drafts] [css-paint-api] Math.random usage in CSS Paint API leads to jitter in painted effect. (#970)

Wait, hm, we'd have to pass it into the paint() callback, not expose it on the global, because otherwise it would share its state between all the worklets running in a given global, including separate invocations of the same worklet.

So we'd have to add a parameter to the constructor saying you want a prng, and specify how it's passed to the callback; at that point I don't think there's much benefit over just saying `var prng = Math.seededPRNG();` yourself.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/970#issuecomment-547163098 using your GitHub account

Received on Monday, 28 October 2019 21:57:25 UTC