Skip to content
Snippets Groups Projects
Commit b641f572 authored by Avi Kivity's avatar Avi Kivity Committed by Pekka Enberg
Browse files

virtio-rng: fix incorrect use of valarray


std::valarray does not guarantee its elements will be allocated contiguously,
so the form &v[0] is only guaranteed to point to the first element, not the
rest.

Switch to std::vector, where contiguity is guaranteed.

Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent 73bac492
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment