3 # Generate a list of rotation vectors so we always use the same set.
4 # This needs to be run on a platform with /dev/urandom.
9 sysopen(UR
, '/dev/urandom', O_RDONLY
) or die;
13 print "\@random_sv_vectors = (\n";
16 for ($i = 0; $i < $n; $i++) {
18 die if (sysread(UR
, $x8, 8) != 8);
19 @n = unpack("V*", $x8);
21 $xl = sprintf(" [0x%08x, 0x%08x]%s",
23 ($i == $n-1) ?
'' : ',');
24 if (length($outl.$xl) > $maxlen) {