Repository: tokio-rs/tokio
File: tokio/src/runtime/builder.rs (Rust)

Code before:
        /// but the runtime is underutilized. Use tokio-rs/tokio-metrics to
        /// collect this data.
        ///
        /// # Unstable
        ///
        /// This configuration option is considered a workaround for the LIFO
        /// slot not being stealable. When the slot becomes stealable, we will
        /// revisit whther or not this option is necessary. See
        /// tokio-rs/tokio#4941.
        ///
        /// # Examples
        ///
        /// ```
        /// use tokio::runtime;
        ///
        /// let rt = runtime::Builder::new_multi_thread()
        ///     .disable_lifo_slot()
        ///     .build()
        ///     .unwrap();
        /// ```
        pub fn disable_lifo_slot(&mut self) -> &mut Self {
            self.disable_lifo_slot = true;
            self
        }

                /// Specifies the random number generation seed to use within all threads associated
        /// with the runtime being built.
        ///
        /// This option is intended to make certain parts of the runtime deterministic.
        /// Specifically, it affects the [`tokio::select!`] macro and the work stealing
        /// algorithm. In the case of [`tokio::select!`] it will ensure that the order that
        /// branches are polled is deterministic.
        ///
        /// In the case of work stealing, it's a little more complicated. Each worker will
        /// be given a deterministic seed so that the starting peer for each work stealing
        /// search will be deterministic.
        ///
        /// # Examples
        ///
        /// ```
        /// # use tokio::runtime::{self, RngSeed};
        /// # pub fn main() {
        /// let seed = RngSeed::from_bytes(b"place your seed here");
        /// let rt = runtime::Builder::new_current_thread()
        ///     .rng_seed(seed)
        ///     .build();
        /// # }
        /// ```
        ///
        /// [`tokio::select!`]: crate::select
        pub fn rng_seed(&mut self, seed: RngSeed) -> &mut Self {

Review comment (suggestion):
```suggestion
        /// Specifies the random number generation seed to use within all threads associated
```

formatting (rustfmt doesn't touch macro bodies :frowning: )

Code after:
        /// but the runtime is underutilized. Use tokio-rs/tokio-metrics to
        /// collect this data.
        ///
        /// # Unstable
        ///
        /// This configuration option is considered a workaround for the LIFO
        /// slot not being stealable. When the slot becomes stealable, we will
        /// revisit whther or not this option is necessary. See
        /// tokio-rs/tokio#4941.
        ///
        /// # Examples
        ///
        /// ```
        /// use tokio::runtime;
        ///
        /// let rt = runtime::Builder::new_multi_thread()
        ///     .disable_lifo_slot()
        ///     .build()
        ///     .unwrap();
        /// ```
        pub fn disable_lifo_slot(&mut self) -> &mut Self {
            self.disable_lifo_slot = true;
            self
        }

        /// Specifies the random number generation seed to use within all threads associated
        /// with the runtime being built.
        ///
        /// This option is intended to make certain parts of the runtime deterministic.
        /// Specifically, it affects the [`tokio::select!`] macro and the work stealing
        /// algorithm. In the case of [`tokio::select!`] it will ensure that the order that
        /// branches are polled is deterministic.
        ///
        /// In the case of work stealing, it's a little more complicated. Each worker will
        /// be given a deterministic seed so that the starting peer for each work stealing
        /// search will be deterministic.
        ///
        /// In addition to the code specifying `rng_seed` and interacting with the runtime,
        /// the internals of Tokio and the Rust compiler may affect the sequences of random
        /// numbers. In order to ensure repeatable results, the version of Tokio, the versions
        /// of all other dependencies that interact with Tokio, and the Rust compiler version
        /// should also all remain constant.
        ///
        /// # Examples
        ///
        /// ```
        /// # use tokio::runtime::{self, RngSeed};
        /// # pub fn main() {
        /// let seed = RngSeed::from_bytes(b"place your seed here");
        /// let rt = runtime::Builder::new_current_thread()
        ///     .rng_seed(seed)