AC
- Copy the algorithm in mw.user.generateRandomSessionId into the JS client library to generate pageview/session IDs
- A unit test is added to test the distribution of pageview/session IDs generated by the algorithm (see note 2 below)
See https://gitlab.wikimedia.org/phuedx/id-distribution-test.
Notes
- The algorithm would be best placed in DefaultIntegration (or nearby?) so that it's testable in isolation and so that DefaultIntegration#getPageviewID() and #getSessionID() get implementations!