Skip to content
Myr

randomized_environment_offset.rs

This file

Path

src/util/randomized_environment_offset.rs

8 lines · 399 bytes · Rust

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than a596c70 point at it.

Bump rust_decimal from 1.25.0 to 1.26.1dependabot[bot]before adoptiona596c70

lines 1–8why, one step back
1/// Returns a string with a random length. This value will be set as an environment
2/// variable to account for offset effects. See [1] for more details.3///4/// [1] Mytkowicz, 2009. Producing Wrong Data Without Doing Anything Obviously Wrong!.5/// Sigplan Notices - SIGPLAN. 44. 265-276. 10.1145/1508284.1508275.6pub fn value() -> String {7 "X".repeat(rand::random::<usize>() % 4096usize)8}