| Summary: | Bias in first few random numbers generated by WeakRandom | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | ajith | ||||
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | ap, bastien, ggaren | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Mac (Intel) | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
ajith
2014-10-03 12:19:32 PDT
Created attachment 239219 [details]
C++ code to reproduce bug.
Any progress on this? There's a blog post in the works about this, so in the ideal case, am hoping for a fix before that is published. Looks like initializeSeed can correct for bias by using a different constant. Can your experiment work around this limitation by explicitly skipping the first few random numbers? We currently have a fix that avoids the bucketing issues. If a different constant does indeed fixes this issue, it'd be great to have this fix in. Thanks for checking this. Geoffrey, Just checking. Will you or someone else be applying a fix for this? It seems that we have this particular issue with our a/b test algorithm. We have this kind of repartition between test versions on safari: Version 0: 800 Version 1: 11 000 Version 2: 35 000 Version 3: 24 000 We observe this behavior with all safari versions with significant traffic: 9.x, 8.0, 7.0, 6.1.6 However, Safari 4.0 does not seem to have this issue. We have reproduced this behavior on all safari versions available on saucelabs with this piece of code : https://gist.github.com/bcaudan/bfab026fa2416af9fc48dfacc4a59938 Do you have any news on this issue? Have you tested Safari Technology Preview? No. Is it supposed to be fixed? Yes. Great, then! Thx. |