{"comment":{"url":"https://api.github.com/repos/vaibhav-y/statistical/comments/17831400","html_url":"https://github.com/vaibhav-y/statistical/commit/283152f02594a26b13178fa468cb40bdc0c8079d#commitcomment-17831400","id":17831400,"user":{"login":"vaibhav-y","id":3663231,"avatar_url":"https://avatars.githubusercontent.com/u/3663231?v=3","gravatar_id":"","url":"https://api.github.com/users/vaibhav-y","html_url":"https://github.com/vaibhav-y","followers_url":"https://api.github.com/users/vaibhav-y/followers","following_url":"https://api.github.com/users/vaibhav-y/following{/other_user}","gists_url":"https://api.github.com/users/vaibhav-y/gists{/gist_id}","starred_url":"https://api.github.com/users/vaibhav-y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaibhav-y/subscriptions","organizations_url":"https://api.github.com/users/vaibhav-y/orgs","repos_url":"https://api.github.com/users/vaibhav-y/repos","events_url":"https://api.github.com/users/vaibhav-y/events{/privacy}","received_events_url":"https://api.github.com/users/vaibhav-y/received_events","type":"User","site_admin":false},"position":12,"line":22,"path":"lib/statistical/rng/laplace.rb","commit_id":"283152f02594a26b13178fa468cb40bdc0c8079d","created_at":"2016-06-11T04:11:54Z","updated_at":"2016-06-11T04:11:54Z","body":"Well instead of monkey patching I was going to add a class or instance variable (`@@rngine`?)to specify the core RNG by something like this\r\n\r\n```ruby\r\n[11] pry(main)> module Rng\r\n[11] pry(main)*   # Not exactly final, but it's either this or a user passed flag\r\n[11] pry(main)*   @@rngine = [Random, PCGRandom]\r\n[11] pry(main)*   # ...\r\n[11] pry(main)*   def self.engine\r\n[11] pry(main)*     @@rngine\r\n[11] pry(main)*   end\r\n[11] pry(main)* end\r\n```\r\n\r\nthe Rng module children would then be able to just call `Rng::engine.new(seed)`"}}
{"actor":{"display_login":"vaibhav-y"}}