summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-10-02 15:24:30 +0300
committerChris Wilson <chris@chris-wilson.co.uk>2019-10-02 17:30:44 +0300
commitdfe324f34c53af095bfe54b322e1a338421a6b0e (patch)
tree639ee1e19db8928a78e87ebfe106a09bf8f95169 /scripts/gdb/linux/utils.py
parent006e570128f413759b9df64b51bae79903679c9b (diff)
downloadlinux-dfe324f34c53af095bfe54b322e1a338421a6b0e.tar.xz
drm/i915/selftests: Extract random_offset() for use with a prng
For selftests, we desire repeatability and so prefer using a prng with known seed over true randomness. Extract random_offset() as a selftest utility that can take the prng state. Suggested-by: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Matthew Auld <matthew.auld@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191002122430.23205-1-chris@chris-wilson.co.uk
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions