blob: c5095524f32fd6c34241ba95c42ff5d5c85c7420 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#! /bin/sh
#
# This file demonstrates which patterns are detected by the check for
# random numbers without other sources of randomness.
# Having a single low-entropy random source is bad.
$RANDOM
# These two are ok.
$RANDOM-$$
$$-$RANDOM
# This is not the style used in GNU configure scripts, thus no warning
# is necessary. This doesn't occur in practice.
${RANDOM}
# This is not a special variable.
$RANDOMNESS
# This is not a special variable as well.
$RANDOM_FILE
|