aboutsummaryrefslogtreecommitdiffstats
path: root/license-generator/src/errors.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-11-09 15:40:07 +0100
committerTeddy Wing2018-11-09 15:40:07 +0100
commitfd29a704906d98c1bacc42dc1f8ec4bc8228af44 (patch)
tree6894772a11e453ead09dc92641f58a486a9c2146 /license-generator/src/errors.rs
parent890c690007d55702d5eea9964e38e600bbc3dd15 (diff)
downloaddome-key-web-fd29a704906d98c1bacc42dc1f8ec4bc8228af44.tar.bz2
Purchaser::generate_secret(): Use a larger random number pool
The `random()` function I was using will sample a value from "the full representable range" (https://docs.rs/rand/0.5.5/rand/#the-two-step-process-to-get-a-random-value). We should really be using longer numbers, so set the sample range to integers above and including 1 billion.
Diffstat (limited to 'license-generator/src/errors.rs')
0 files changed, 0 insertions, 0 deletions