Take BoringSSL 1b92f64: Fix comment style in crypto/rand/rand.c.
This commit is contained in:
commit
cab42955f3
@ -152,8 +152,8 @@ int RAND_bytes(uint8_t *buf, size_t len) {
|
||||
if (len >= sizeof(state->partial_block)) {
|
||||
size_t remaining = len;
|
||||
while (remaining > 0) {
|
||||
// kMaxBytesPerCall is only 2GB, while ChaCha can handle 256GB. But this
|
||||
// is sufficient and easier on 32-bit.
|
||||
/* kMaxBytesPerCall is only 2GB, while ChaCha can handle 256GB. But this
|
||||
* is sufficient and easier on 32-bit. */
|
||||
static const size_t kMaxBytesPerCall = 0x80000000;
|
||||
size_t todo = remaining;
|
||||
if (todo > kMaxBytesPerCall) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user