Closed dapperdrop closed 4 years ago
Maybe make this comment a bit clearer to reflect the logic:
"Assign recipes to users in test, else exclude them by test's sample rate"
@dapperdrop
if (!recipe.js) { recipe.js = function () {}; } Then I will remove it in another commit. This should be the last item to resolve for this PR, unless you guys see something else should be addressed.
Yes, we don't need it. I also left some comments in this pr but it seems not visible to you guys. e.g. :
Move var seededRNGSeed = (new Date()).getTime(); here means the initial seed will be created every time we call getSeededRNGRandom function, seems not correct. This the only question I'd like to confirm before approving.
Please let me know if you have seen it, maybe I did something wrong when I submit review comments.
Thanks @allmywant - I didn't see your other comments, thanks for letting us know.
Move var seededRNGSeed = (new Date()).getTime(); here means the initial seed will be created every time we call getSeededRNGRandom function, seems not correct. This the only question I'd like to confirm before approving.
Good spot there. I'm not sure either, @kingo55 do you know?
@allmywant - did you "Submit" the code review? I had that issue the other day where I thought I added questions to a PR, but they weren't visible until I hit the "Submit review" section. Github code review submission is not so clear IMO.
Move var seededRNGSeed = (new Date()).getTime(); here means the initial seed will be created every time we call getSeededRNGRandom function, seems not correct. This the only question I'd like to confirm before approving.
Good spot there. I'm not sure either, @kingo55 do you know?
I'm not sure. Perhaps it's safer for us to move it back so we're not unintentionally changing the logic of this old function at all.
Ref: https://github.com/mint-metrics/mojito-js-delivery/issues/35