OSDN Git Service

Use random data for benchmark instead of zeros.
authorJeff Sharkey <jsharkey@android.com>
Wed, 29 Jul 2015 16:14:21 +0000 (09:14 -0700)
committerJeff Sharkey <jsharkey@android.com>
Wed, 29 Jul 2015 17:03:11 +0000 (10:03 -0700)
commitd46687ee5da7c9847c6188241ccc699d3a0826c2
treeafbea798a6661542cb7e9eba3a73723615978a33
parent20642ae71aa93ec2658d09c92a1ffc3844f5a555
Use random data for benchmark instead of zeros.

If we always write zeros, we're leaving a giant pile of known
plaintext at an almost deterministic location on newly formatted
volumes.  To avoid this, repeat a 64K chunk of random data.

Bug: 22816936
Change-Id: Iedc067a519bd676a93b9d74ea4f9f77c84c8461c
BenchmarkGen.h
bench/benchgen.py