mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 08:46:45 +08:00
Update test_ipc.cpp
This commit is contained in:
parent
f21ebccbb2
commit
94c1043025
@ -19,7 +19,7 @@ namespace {
|
|||||||
class rand_buf : public buffer {
|
class rand_buf : public buffer {
|
||||||
public:
|
public:
|
||||||
rand_buf() {
|
rand_buf() {
|
||||||
int size = capo::random{1, 65536}();
|
int size = capo::random<>{1, 65536}();
|
||||||
*this = buffer(new char[size], size, [](void * p, std::size_t) {
|
*this = buffer(new char[size], size, [](void * p, std::size_t) {
|
||||||
delete [] static_cast<char *>(p);
|
delete [] static_cast<char *>(p);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user