//! ETKDG retry loop: maxIterations attempts with a fresh sample each time,
//! plus a `useRandomCoords` fallback.
//!
//! Port of the retry structure in RDKit `EmbeddingOps::embedPoints`
//! (`$RDBASE/Code/GraphMol/DistGeomHelpers/Embedder.cpp`, BSD-3): each
//! iteration draws a new random distance matrix (here: a fresh RNG stream
//! seeded deterministically from the base seed + attempt index), embeds in 4D,
//! runs the first minimization and the chiral/tetrahedral checks, and accepts
//! the first attempt that passes. The default `maxIterations` heuristic is
//! `10 × n_atoms` (RDKit `embedParams.maxIterations == 0` branch). When all
//! plain attempts fail and the fallback is enabled, a final pass uses random
//! box coordinates (`useRandomCoords`).
/// Resolve the effective maximum number of embedding attempts.
///
/// `requested == 0` reproduces RDKit's heuristic `10 × n_atoms`
/// (`embedParams.maxIterations == 0`); a non-zero value is used verbatim.
/// Per-attempt seed derived from a base seed and the attempt index, so each
/// retry draws an independent — but fully reproducible — random stream.