% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/04_calculation.R
\name{.derive_task_seed}
\alias{.derive_task_seed}
\title{Derive Deterministic Per-Task Seed}
\usage{
.derive_task_seed(seed, task_id, all_task_ids)
}
\arguments{
\item{seed}{Integer or NULL. Base seed chosen by the user.}

\item{task_id}{Character. Contrast task identifier.}

\item{all_task_ids}{Character vector. All task ids in the current run.}
}
\value{
Integer seed derived from the base seed and the task's rank in the
  alphabetically sorted task list, or NULL when `seed` is NULL, NA or
  non-numeric. Ranking
  against the sorted full task list (not the chunk-local order) makes the
  derived seed independent of `workers` and `chunk_size`.
}
\description{
Derive Deterministic Per-Task Seed
}
\keyword{internal}
