Revision history for Perl extension Statistics::CaseResampling.

0.19  Fri Nov 27 10:15:00 2026
  - Fix default PRNG seeding (previous setup(rand()) truncated to seed 0)
    by seeding from native OS entropy (BCryptGenRandom/RtlGenRandom on
    Windows, /dev/urandom on Unix) with a 32-bit-safe fallback that
    preserves $!, and automatically reseed the default RNG after fork()
    as well as ithreads CLONE.
  - Use SvUV() in RdGen::setup_array() so full unsigned 32-bit seed words
    are preserved on 32-bit-IV Perls.
  - Eliminate modulo/scaling index bias in do_resample() via Lemire's
    unbiased bounded 32-bit integer sampling.
  - Propagate NaN deterministically across all input permutations in
    cs_select() and derived order statistics, and reject NaN in
    confidence level and approx_erf_inv() domain guards.
  - Prevent signed 32-bit multiplication overflow in third_quartile() on
    very large samples.
  - Upgrade mean() to Neumaier compensated summation with overflow-safe
    incremental fallback; upgrade standard deviation functions to scaled
    single-pass summation (avoiding overflow/underflow) and allow optional
    1-argument calling form sample_standard_deviation(\@sample) and
    population_standard_deviation(\@sample).
  - Replace low-precision erf/erfinv approximations with C99 erf()/erfc()
    and Acklam + Halley normal quantile refinement for full double
    precision across extreme tails.
  - Add statistically sound, two-sided functions while preserving legacy
    functions for backward compatibility:
      * quantile() (Hyndman-Fan Type 7 in O(n) expected time)
      * percentile_confidence_limits_from_samples()
      * basic_confidence_limits_from_samples()
      * bca_confidence_limits_from_samples()
      * median_percentile_confidence_limits()
      * median_exact_confidence_limits() (exact Binomial(n, 0.5) interval)
  - Add comprehensive statistical correctness test suite in t/04_statistics.t.
  - Fix POD documentation inaccuracies and add statistical caveats.

0.18  Sun Oct 11 10:00:00 2026
  - Fix wild stack pointer deallocation (SIGABRT free() invalid pointer)
    when passing empty arrays to resampling/statistical functions (SCR-01).
  - Prevent use-after-free and double-free under ithreads by adding CLONE
    and CLONE_SKIP handlers for the PRNG state (SCR-02).
  - Fix out-of-bounds indexing in first_quartile and third_quartile for
    small samples (SCR-03).
  - Clamp confidence limit indices to valid sample bounds on extreme
    confidence levels (SCR-04).
  - Validate resample run counts (runs >= 1 && runs <= 100000000) (SCR-05).
  - Fix memory leak on invalid kth selection in select_kth (SCR-06).
  - Guard sample and population standard deviation calculations against
    division by zero on small sample sizes (SCR-07).
  - Use Perl memory allocator (Newx/Safefree) consistently in
    median_absolute_deviation (SCR-08).
  - Harden U32ArrayPtr buffer allocation and size validation (SCR-09).
  - Add comprehensive regression test suite in t/03_security.t.
  - Update author contact details to cpan@steffen-mueller.net.

0.17  Thu Jul 17 20:00:00 2025
  - Include a fallback #ifndef for what appears to be an edge case github
    actions issue.

0.16  Mon May 19 12:37:00 2025
  - Fix XS bug that made the build break under modern (stricter)
    ExtUtils::ParseXS. (Thanks Dave!)

0.15  Tue May 14 18:38:00 2013
  - Do not override compiler optimization level in Makefile.PL (P Pisar)

0.14  Mon May 13 21:50:00 2013
  - MSVC (== C89) compatibility fixes (Daniel Dragan)

0.13  Wed Aug  1 15:00:00 2012
  - Fixes to std. dev. functions: They were actually the variance. DOH.

0.12  Sat Feb 18 15:00:00 2012
  - Test accuracy fixes.

0.11  Fri Feb 17 13:00:00 2012
  - Implement minor extra statistics functions in XS:
    sample std. dev. and population std. dev.
  - Shuffle docs around a little bit.

0.10  Mon Feb 13 08:26:00 2012
  - Document the choice of O(n) median algorithm.

0.09  Mon Jan 16 08:28:00 2012
  - Implements median_absolute_deviation.

0.08  Sun Aug 21 21:54:00 2011
  - Tiny darwin fix [jtpalmer]

0.07  Mon Jan 24 23:00:00 2011
  - Updated ppport.h for compatibility with older perls.

0.06  Fri Sep 24 21:00:00 2010
  - Calculation of confidence limits for various statistics.
  - Rewrite of the documentation.
  - More exposed XS functions:
  => erf, erf^-1, nsigma <=> alpha conversion,
     first and third quartiles, mean

0.05  Fri Sep 24 20:00:00 2010
  - Implement resample_means.
  - Optimize using PERL_NO_GET_CONTEXT

0.04  Thu Sep 23 21:00:00 2010
  - Exposes select_kth() to Perl.

0.03  Thu Sep 23 20:00:00 2010
  - median() is now much faster thanks to using
    O(n) selection instead of O(n*log(n)) quick sort.
  - Docs upgrade.

0.02  Wed Sep 22 22:00:00 2010
  - OBIWAN. Nuff said.

0.01  Wed Sep 22 20:00:00 2010
  - original version

