35 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
48 size_t indexi=0, indexo=0;
49 uint8_t *in = (uint8_t *)&
m_ivec[0];
51 for (
size_t i=0; i<
m_nints; i++)
58 buf[indexo++] = cb64[ in[indexi] >> 2 ];
62 buf[indexo++] = cb64[((in[indexi] & 0x03) << 4)
63 | ((in[indexi+1] & 0xf0) >> 4)];
67 buf[indexo++] = cb64[((in[indexi+1] & 0x0f) << 2)
68 | ((in[indexi+2] & 0xc0) >> 6)];
72 buf[indexo++] = cb64[ in[indexi+2] & 0x3f ];
std::vector< uint32_t > m_ivec
FixedRandomStringGenerator(int n)
static uint32_t number32(uint32_t maximum=0)
Returns a random 32-bit unsigned integer.
Logging routines and macros.
Compatibility Macros for C/C++.
Random number generator for int32, int64, double and ascii arrays.