Commit e4b14e5
Replace boost::random with std::random for WASM compatibility
- Remove boost::random dependency, use std::<random> and custom
implementations for distributions not in the standard library
(beta, laplace, logistic, pareto, rayleigh)
- Replace custom thread-local RNG with DuckDB's RandomEngine via
RngAdapter (thread-safe, supports setseed() for reproducibility)
- Fix data race: acquire RandomEngine::lock before seeding
- Fix bug in DistributionCallUnaryUnary: args.data[2] -> args.data[1]
- Fix missing cauchy distribution registration
- Fix uniform_int to use boost::math::uniform_distribution<double>
- Fix quantile return types for discrete distributions
- Restore sampling for logistic, pareto, rayleigh distributions
- Remove stale forward declarations from utils.hpp
- Add BOOST_MATH_STANDALONE compile definition
- Add comprehensive test coverage for all 22 distributions
- Document setseed() reproducibility in docs/README.md
- Add .cache/ and vcpkg/ to .gitignore
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e761518 commit e4b14e5
File tree
56 files changed
+4368
-256
lines changed- docs
- scripts
- src
- include
- test/sql
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+4368
-256
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
227 | 241 | | |
228 | 242 | | |
229 | 243 | | |
| |||
0 commit comments