Commit 409a43c
committed
Use bit-shift math in unseeded RAND() compile path
Replace the literal `0x001FFFFFFFFFFFFF` / `9007199254740992.0` with
`(1 << 53) - 1` and `(1 << 53)` written directly in the SQL. SQLite's
query optimizer folds them at prepare time, so there's no runtime
cost, and the math is now self-documenting.
Per review feedback on #363.1 parent 9e0d046 commit 409a43c
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4418 | 4418 | | |
4419 | 4419 | | |
4420 | 4420 | | |
4421 | | - | |
| 4421 | + | |
4422 | 4422 | | |
4423 | 4423 | | |
4424 | 4424 | | |
| |||
0 commit comments