(test.buckets.include?(bucket_id)) return if not Time.now.between?(test.start_at, test.end_at) weight_id = SHA256(test.seed + id) % test.weight_sum test.variants.find do |v| v.accumulated_weight > weight_id end
(test.buckets.include?(bucket_id)) return if not Time.now.between?(test.start_at, test.end_at) weight_id = SHA256(test.seed + id) % test.weight_sum test.variants.find do |v| v.accumulated_weight > weight_id end
(test.buckets.include?(bucket_id)) return if not Time.now.between?(test.start_at, test.end_at) weight_id = SHA256(test.seed + id) % test.weight_sum test.variants.find do |v| v.accumulated_weight > weight_id end
(test.buckets.include?(bucket_id)) return if not Time.now.between?(test.start_at, test.end_at) weight_id = SHA256(test.seed + id) % test.weight_sum test.variants.find do |v| v.accumulated_weight > weight_id end