Skip to content

Commit

Permalink
fix: Ruby 3.0 compatibility for generate_r
Browse files Browse the repository at this point in the history
  • Loading branch information
fbogsany committed Nov 2, 2023
1 parent 6457553 commit 65e99f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def decimal(str)
end

def generate_r(trace_id)
x = trace_id.unpack1('Q>', offset: 8) | 0x3
x = trace_id.unpack1('@8Q>') | 0x3
64 - x.bit_length
end
end
Expand Down

0 comments on commit 65e99f5

Please sign in to comment.