libc++: remove unused variable in random_device::operator()()
Reviewers: jvoung Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D7416 llvm-svn: 228183
This commit is contained in:
parent
caf7e8b147
commit
7b683b43be
|
@ -70,7 +70,6 @@ random_device::operator()()
|
||||||
{
|
{
|
||||||
unsigned r;
|
unsigned r;
|
||||||
size_t n = sizeof(r);
|
size_t n = sizeof(r);
|
||||||
char* p = reinterpret_cast<char*>(&r);
|
|
||||||
size_t bytes_written;
|
size_t bytes_written;
|
||||||
int error = nacl_secure_random(&r, n, &bytes_written);
|
int error = nacl_secure_random(&r, n, &bytes_written);
|
||||||
if (error != 0)
|
if (error != 0)
|
||||||
|
|
Loading…
Reference in New Issue