]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
auth/Crypto: assert(len <= 256) before calling getentropy()
authorKefu Chai <kchai@redhat.com>
Tue, 24 Sep 2019 11:02:38 +0000 (19:02 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 24 Sep 2019 13:31:00 +0000 (21:31 +0800)
commitccae47ea08a51f6a1d6c237cde75732dbb7b74df
tree14d10b1a7bf323aaa06bff3f10c1b49430529f33
parentbb6d9c32ad6a5c5bba2e688837149c5cff6697a3
auth/Crypto: assert(len <= 256) before calling getentropy()

this assert() will be optimized out in Release mode.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/auth/Crypto.cc