]> git.lizzy.rs Git - rust.git/commitdiff
rand: Use fill() instead of read()
authorAlex Crichton <alex@alexcrichton.com>
Fri, 21 Mar 2014 01:53:30 +0000 (18:53 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 22 Mar 2014 15:57:58 +0000 (08:57 -0700)
It's possible for a reader to have a short read, and there's no reason the task
should fail in this scenario. By using fill(), this has a stronger guarantee
that the buffer will get filled with data.


No differences found