We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12dfbf2 commit e282d46Copy full SHA for e282d46
src/utils/random.jl
@@ -1,4 +1,4 @@
1
function random_bigint_from_range(bits::Integer)
2
bits <= 0 && error("bits <= 0")
3
- return rand((BigInt(2)^(bits - 1)):(BigInt(2)^bits))
+ return rand((BigInt(2)<<(bits - 1)):(BigInt(2)<<bits))
4
end
0 commit comments