Home
last modified time | relevance | path

Searched refs:rand_bytes (Results 1 – 25 of 517) sorted by relevance

12345678910>>...21

/dports/sysutils/bareos19-traymonitor/bareos-Release-19.2.11/core/src/lib/
H A Dpassphrase.cc48 unsigned char* rand_bytes; in generate_crypto_passphrase() local
55 rand_bytes = (unsigned char*)malloc(length); in generate_crypto_passphrase()
59 if (RAND_bytes(rand_bytes, length) != 1) { in generate_crypto_passphrase()
68 free(rand_bytes); in generate_crypto_passphrase()
83 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
87 free(rand_bytes); in generate_crypto_passphrase()
101 int* rand_bytes; in generate_crypto_passphrase() local
109 rand_bytes = (int*)malloc(length * sizeof(int)); in generate_crypto_passphrase()
112 for (cnt = 0; cnt < length; cnt++) { rand_bytes[cnt] = rand(); } in generate_crypto_passphrase()
122 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
[all …]
/dports/sysutils/bareos-traymonitor/bareos-Release-20.0.3/core/src/lib/
H A Dpassphrase.cc48 unsigned char* rand_bytes; in generate_crypto_passphrase() local
55 rand_bytes = (unsigned char*)malloc(length); in generate_crypto_passphrase()
59 if (RAND_bytes(rand_bytes, length) != 1) { in generate_crypto_passphrase()
68 free(rand_bytes); in generate_crypto_passphrase()
83 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
87 free(rand_bytes); in generate_crypto_passphrase()
101 int* rand_bytes; in generate_crypto_passphrase() local
109 rand_bytes = (int*)malloc(length * sizeof(int)); in generate_crypto_passphrase()
112 for (cnt = 0; cnt < length; cnt++) { rand_bytes[cnt] = rand(); } in generate_crypto_passphrase()
122 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
[all …]
/dports/sysutils/bareos19-client/bareos-Release-19.2.11/core/src/lib/
H A Dpassphrase.cc48 unsigned char* rand_bytes; in generate_crypto_passphrase() local
55 rand_bytes = (unsigned char*)malloc(length); in generate_crypto_passphrase()
59 if (RAND_bytes(rand_bytes, length) != 1) { in generate_crypto_passphrase()
68 free(rand_bytes); in generate_crypto_passphrase()
83 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
87 free(rand_bytes); in generate_crypto_passphrase()
101 int* rand_bytes; in generate_crypto_passphrase() local
109 rand_bytes = (int*)malloc(length * sizeof(int)); in generate_crypto_passphrase()
112 for (cnt = 0; cnt < length; cnt++) { rand_bytes[cnt] = rand(); } in generate_crypto_passphrase()
122 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
[all …]
/dports/sysutils/bareos-client/bareos-Release-20.0.3/core/src/lib/
H A Dpassphrase.cc48 unsigned char* rand_bytes; in generate_crypto_passphrase() local
55 rand_bytes = (unsigned char*)malloc(length); in generate_crypto_passphrase()
59 if (RAND_bytes(rand_bytes, length) != 1) { in generate_crypto_passphrase()
68 free(rand_bytes); in generate_crypto_passphrase()
83 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
87 free(rand_bytes); in generate_crypto_passphrase()
101 int* rand_bytes; in generate_crypto_passphrase() local
109 rand_bytes = (int*)malloc(length * sizeof(int)); in generate_crypto_passphrase()
112 for (cnt = 0; cnt < length; cnt++) { rand_bytes[cnt] = rand(); } in generate_crypto_passphrase()
122 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
[all …]
/dports/sysutils/bareos18-traymonitor/bareos-Release-18.2.12/core/src/lib/
H A Dpassphrase.cc48 unsigned char *rand_bytes; in generate_crypto_passphrase() local
54 rand_bytes = (unsigned char *)malloc(length); in generate_crypto_passphrase()
58 if (RAND_bytes(rand_bytes, length) != 1) { in generate_crypto_passphrase()
66 free(rand_bytes); in generate_crypto_passphrase()
81 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
85 free(rand_bytes); in generate_crypto_passphrase()
99 int *rand_bytes; in generate_crypto_passphrase() local
106 rand_bytes = (int *)malloc(length * sizeof(int)); in generate_crypto_passphrase()
110 rand_bytes[cnt] = rand(); in generate_crypto_passphrase()
121 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
[all …]
/dports/sysutils/bareos18-server/bareos-Release-18.2.12/core/src/lib/
H A Dpassphrase.cc48 unsigned char *rand_bytes; in generate_crypto_passphrase() local
54 rand_bytes = (unsigned char *)malloc(length); in generate_crypto_passphrase()
58 if (RAND_bytes(rand_bytes, length) != 1) { in generate_crypto_passphrase()
66 free(rand_bytes); in generate_crypto_passphrase()
81 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
85 free(rand_bytes); in generate_crypto_passphrase()
99 int *rand_bytes; in generate_crypto_passphrase() local
106 rand_bytes = (int *)malloc(length * sizeof(int)); in generate_crypto_passphrase()
110 rand_bytes[cnt] = rand(); in generate_crypto_passphrase()
121 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
[all …]
/dports/sysutils/bareos18-client/bareos-Release-18.2.12/core/src/lib/
H A Dpassphrase.cc48 unsigned char *rand_bytes; in generate_crypto_passphrase() local
54 rand_bytes = (unsigned char *)malloc(length); in generate_crypto_passphrase()
58 if (RAND_bytes(rand_bytes, length) != 1) { in generate_crypto_passphrase()
66 free(rand_bytes); in generate_crypto_passphrase()
81 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
85 free(rand_bytes); in generate_crypto_passphrase()
99 int *rand_bytes; in generate_crypto_passphrase() local
106 rand_bytes = (int *)malloc(length * sizeof(int)); in generate_crypto_passphrase()
110 rand_bytes[cnt] = rand(); in generate_crypto_passphrase()
121 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
[all …]
/dports/sysutils/bareos-server/bareos-Release-20.0.3/core/src/lib/
H A Dpassphrase.cc48 unsigned char* rand_bytes; in generate_crypto_passphrase() local
55 rand_bytes = (unsigned char*)malloc(length); in generate_crypto_passphrase()
59 if (RAND_bytes(rand_bytes, length) != 1) { in generate_crypto_passphrase()
68 free(rand_bytes); in generate_crypto_passphrase()
83 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
87 free(rand_bytes); in generate_crypto_passphrase()
101 int* rand_bytes; in generate_crypto_passphrase() local
109 rand_bytes = (int*)malloc(length * sizeof(int)); in generate_crypto_passphrase()
112 for (cnt = 0; cnt < length; cnt++) { rand_bytes[cnt] = rand(); } in generate_crypto_passphrase()
122 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
[all …]
/dports/sysutils/bareos19-server/bareos-Release-19.2.11/core/src/lib/
H A Dpassphrase.cc48 unsigned char* rand_bytes; in generate_crypto_passphrase() local
55 rand_bytes = (unsigned char*)malloc(length); in generate_crypto_passphrase()
59 if (RAND_bytes(rand_bytes, length) != 1) { in generate_crypto_passphrase()
68 free(rand_bytes); in generate_crypto_passphrase()
83 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
87 free(rand_bytes); in generate_crypto_passphrase()
101 int* rand_bytes; in generate_crypto_passphrase() local
109 rand_bytes = (int*)malloc(length * sizeof(int)); in generate_crypto_passphrase()
112 for (cnt = 0; cnt < length; cnt++) { rand_bytes[cnt] = rand(); } in generate_crypto_passphrase()
122 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
[all …]
/dports/www/bareos19-webui/bareos-Release-19.2.11/core/src/lib/
H A Dpassphrase.cc48 unsigned char* rand_bytes; in generate_crypto_passphrase() local
55 rand_bytes = (unsigned char*)malloc(length); in generate_crypto_passphrase()
59 if (RAND_bytes(rand_bytes, length) != 1) { in generate_crypto_passphrase()
68 free(rand_bytes); in generate_crypto_passphrase()
83 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
87 free(rand_bytes); in generate_crypto_passphrase()
101 int* rand_bytes; in generate_crypto_passphrase() local
109 rand_bytes = (int*)malloc(length * sizeof(int)); in generate_crypto_passphrase()
112 for (cnt = 0; cnt < length; cnt++) { rand_bytes[cnt] = rand(); } in generate_crypto_passphrase()
122 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
[all …]
/dports/www/bareos-webui/bareos-Release-20.0.3/core/src/lib/
H A Dpassphrase.cc48 unsigned char* rand_bytes; in generate_crypto_passphrase() local
55 rand_bytes = (unsigned char*)malloc(length); in generate_crypto_passphrase()
59 if (RAND_bytes(rand_bytes, length) != 1) { in generate_crypto_passphrase()
68 free(rand_bytes); in generate_crypto_passphrase()
83 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
87 free(rand_bytes); in generate_crypto_passphrase()
101 int* rand_bytes; in generate_crypto_passphrase() local
109 rand_bytes = (int*)malloc(length * sizeof(int)); in generate_crypto_passphrase()
112 for (cnt = 0; cnt < length; cnt++) { rand_bytes[cnt] = rand(); } in generate_crypto_passphrase()
122 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
[all …]
/dports/www/bareos18-webui/bareos-Release-18.2.12/core/src/lib/
H A Dpassphrase.cc48 unsigned char *rand_bytes; in generate_crypto_passphrase() local
54 rand_bytes = (unsigned char *)malloc(length); in generate_crypto_passphrase()
58 if (RAND_bytes(rand_bytes, length) != 1) { in generate_crypto_passphrase()
66 free(rand_bytes); in generate_crypto_passphrase()
81 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
85 free(rand_bytes); in generate_crypto_passphrase()
99 int *rand_bytes; in generate_crypto_passphrase() local
106 rand_bytes = (int *)malloc(length * sizeof(int)); in generate_crypto_passphrase()
110 rand_bytes[cnt] = rand(); in generate_crypto_passphrase()
121 c = rand_bytes[cnt] % vc_len; in generate_crypto_passphrase()
[all …]
/dports/security/p5-Crypt-OpenSSL-Random/Crypt-OpenSSL-Random-0.15/
H A DRandom.xs17 unsigned char *rand_bytes; local
19 if(New(0,rand_bytes, num_bytes, unsigned char) == NULL)
25 if(RAND_bytes(rand_bytes, num_bytes))
27 XPUSHs(sv_2mortal(newSVpv((const char*)rand_bytes, num_bytes)));
28 Safefree(rand_bytes);
42 unsigned char *rand_bytes; local
44 if(New(0,rand_bytes, num_bytes, unsigned char) == NULL)
50 if(RAND_bytes(rand_bytes, num_bytes))
52 XPUSHs(sv_2mortal(newSVpv((const char*)rand_bytes, num_bytes)));
53 Safefree(rand_bytes);
/dports/security/p5-Net-SSLeay/Net-SSLeay-1.90/t/local/
H A D10_rand.t40 my ($ret, $rand_bytes, $rand_length, $rand_expected_length);
47 $ret = Net::SSLeay::RAND_bytes($rand_bytes, $rand_length);
48 test_rand_bytes_results('RAND_bytes', $ret, $rand_bytes, $rand_length, $rand_expected_length);
54 $ret = Net::SSLeay::RAND_pseudo_bytes($rand_bytes, $rand_length);
55 …test_rand_bytes_results('RAND_pseudo_bytes', $ret, $rand_bytes, $rand_length, $rand_expected_lengt…
63 $ret = Net::SSLeay::RAND_priv_bytes($rand_bytes, $rand_length);
64 …test_rand_bytes_results('RAND_priv_bytes', $ret, $rand_bytes, $rand_length, $rand_expected_length);
76 my ($func, $ret, $rand_bytes, $rand_length, $rand_expected_length) = @_;
80 is(length($rand_bytes), $rand_length, "$func: length of rand_bytes and rand_length match");
81 …is(length($rand_bytes), $rand_expected_length, "$func: length of rand_bytes is expected length $ra…
/dports/security/liboqs/liboqs-0.7.0/src/kem/hqc/pqclean_hqc-rmrs-256_clean/
H A Dvector.c33 uint8_t rand_bytes[3 * PARAM_OMEGA_R] = {0}; // weight is expected to be <= PARAM_OMEGA_R
42 seedexpander(ctx, rand_bytes, random_bytes_size);
46 v[i] = ((uint32_t) rand_bytes[j++]) << 16;
47 v[i] |= ((uint32_t) rand_bytes[j++]) << 8;
48 v[i] |= rand_bytes[j++];
106 uint8_t rand_bytes[VEC_N_SIZE_BYTES] = {0};
108 seedexpander(ctx, rand_bytes, VEC_N_SIZE_BYTES);
110 PQCLEAN_HQCRMRS256_CLEAN_load8_arr(v, VEC_N_SIZE_64, rand_bytes, VEC_N_SIZE_BYTES);
/dports/security/liboqs/liboqs-0.7.0/src/kem/hqc/pqclean_hqc-rmrs-128_clean/
H A Dvector.c33 uint8_t rand_bytes[3 * PARAM_OMEGA_R] = {0}; // weight is expected to be <= PARAM_OMEGA_R in PQCLEAN_HQCRMRS128_CLEAN_vect_set_random_fixed_weight_by_coordinates() local
42 seedexpander(ctx, rand_bytes, random_bytes_size); in PQCLEAN_HQCRMRS128_CLEAN_vect_set_random_fixed_weight_by_coordinates()
46 v[i] = ((uint32_t) rand_bytes[j++]) << 16; in PQCLEAN_HQCRMRS128_CLEAN_vect_set_random_fixed_weight_by_coordinates()
47 v[i] |= ((uint32_t) rand_bytes[j++]) << 8; in PQCLEAN_HQCRMRS128_CLEAN_vect_set_random_fixed_weight_by_coordinates()
48 v[i] |= rand_bytes[j++]; in PQCLEAN_HQCRMRS128_CLEAN_vect_set_random_fixed_weight_by_coordinates()
106 uint8_t rand_bytes[VEC_N_SIZE_BYTES] = {0}; in PQCLEAN_HQCRMRS128_CLEAN_vect_set_random() local
108 seedexpander(ctx, rand_bytes, VEC_N_SIZE_BYTES); in PQCLEAN_HQCRMRS128_CLEAN_vect_set_random()
110 PQCLEAN_HQCRMRS128_CLEAN_load8_arr(v, VEC_N_SIZE_64, rand_bytes, VEC_N_SIZE_BYTES); in PQCLEAN_HQCRMRS128_CLEAN_vect_set_random()
/dports/security/liboqs/liboqs-0.7.0/src/kem/hqc/pqclean_hqc-rmrs-192_clean/
H A Dvector.c33 uint8_t rand_bytes[3 * PARAM_OMEGA_R] = {0}; // weight is expected to be <= PARAM_OMEGA_R in PQCLEAN_HQCRMRS192_CLEAN_vect_set_random_fixed_weight_by_coordinates() local
42 seedexpander(ctx, rand_bytes, random_bytes_size); in PQCLEAN_HQCRMRS192_CLEAN_vect_set_random_fixed_weight_by_coordinates()
46 v[i] = ((uint32_t) rand_bytes[j++]) << 16; in PQCLEAN_HQCRMRS192_CLEAN_vect_set_random_fixed_weight_by_coordinates()
47 v[i] |= ((uint32_t) rand_bytes[j++]) << 8; in PQCLEAN_HQCRMRS192_CLEAN_vect_set_random_fixed_weight_by_coordinates()
48 v[i] |= rand_bytes[j++]; in PQCLEAN_HQCRMRS192_CLEAN_vect_set_random_fixed_weight_by_coordinates()
106 uint8_t rand_bytes[VEC_N_SIZE_BYTES] = {0}; in PQCLEAN_HQCRMRS192_CLEAN_vect_set_random() local
108 seedexpander(ctx, rand_bytes, VEC_N_SIZE_BYTES); in PQCLEAN_HQCRMRS192_CLEAN_vect_set_random()
110 PQCLEAN_HQCRMRS192_CLEAN_load8_arr(v, VEC_N_SIZE_64, rand_bytes, VEC_N_SIZE_BYTES); in PQCLEAN_HQCRMRS192_CLEAN_vect_set_random()
/dports/security/liboqs/liboqs-0.7.0/src/kem/hqc/pqclean_hqc-rmrs-256_avx2/
H A Dvector.c34 uint8_t rand_bytes[3 * PARAM_OMEGA_R] = {0}; in PQCLEAN_HQCRMRS256_AVX2_vect_set_random_fixed_weight() local
52 seedexpander(ctx, rand_bytes, random_bytes_size); in PQCLEAN_HQCRMRS256_AVX2_vect_set_random_fixed_weight()
56 tmp[i] = ((uint32_t) rand_bytes[j++]) << 16; in PQCLEAN_HQCRMRS256_AVX2_vect_set_random_fixed_weight()
57 tmp[i] |= ((uint32_t) rand_bytes[j++]) << 8; in PQCLEAN_HQCRMRS256_AVX2_vect_set_random_fixed_weight()
58 tmp[i] |= rand_bytes[j++]; in PQCLEAN_HQCRMRS256_AVX2_vect_set_random_fixed_weight()
109 uint8_t rand_bytes[VEC_N_SIZE_BYTES] = {0}; in PQCLEAN_HQCRMRS256_AVX2_vect_set_random() local
111 seedexpander(ctx, rand_bytes, VEC_N_SIZE_BYTES); in PQCLEAN_HQCRMRS256_AVX2_vect_set_random()
113 PQCLEAN_HQCRMRS256_AVX2_load8_arr(v, VEC_N_SIZE_64, rand_bytes, VEC_N_SIZE_BYTES); in PQCLEAN_HQCRMRS256_AVX2_vect_set_random()
/dports/security/liboqs/liboqs-0.7.0/src/kem/hqc/pqclean_hqc-rmrs-128_avx2/
H A Dvector.c34 uint8_t rand_bytes[3 * PARAM_OMEGA_R] = {0}; in PQCLEAN_HQCRMRS128_AVX2_vect_set_random_fixed_weight() local
52 seedexpander(ctx, rand_bytes, random_bytes_size); in PQCLEAN_HQCRMRS128_AVX2_vect_set_random_fixed_weight()
56 tmp[i] = ((uint32_t) rand_bytes[j++]) << 16; in PQCLEAN_HQCRMRS128_AVX2_vect_set_random_fixed_weight()
57 tmp[i] |= ((uint32_t) rand_bytes[j++]) << 8; in PQCLEAN_HQCRMRS128_AVX2_vect_set_random_fixed_weight()
58 tmp[i] |= rand_bytes[j++]; in PQCLEAN_HQCRMRS128_AVX2_vect_set_random_fixed_weight()
109 uint8_t rand_bytes[VEC_N_SIZE_BYTES] = {0}; in PQCLEAN_HQCRMRS128_AVX2_vect_set_random() local
111 seedexpander(ctx, rand_bytes, VEC_N_SIZE_BYTES); in PQCLEAN_HQCRMRS128_AVX2_vect_set_random()
113 PQCLEAN_HQCRMRS128_AVX2_load8_arr(v, VEC_N_SIZE_64, rand_bytes, VEC_N_SIZE_BYTES); in PQCLEAN_HQCRMRS128_AVX2_vect_set_random()
/dports/security/liboqs/liboqs-0.7.0/src/kem/hqc/pqclean_hqc-rmrs-192_avx2/
H A Dvector.c34 uint8_t rand_bytes[3 * PARAM_OMEGA_R] = {0}; in PQCLEAN_HQCRMRS192_AVX2_vect_set_random_fixed_weight() local
52 seedexpander(ctx, rand_bytes, random_bytes_size); in PQCLEAN_HQCRMRS192_AVX2_vect_set_random_fixed_weight()
56 tmp[i] = ((uint32_t) rand_bytes[j++]) << 16; in PQCLEAN_HQCRMRS192_AVX2_vect_set_random_fixed_weight()
57 tmp[i] |= ((uint32_t) rand_bytes[j++]) << 8; in PQCLEAN_HQCRMRS192_AVX2_vect_set_random_fixed_weight()
58 tmp[i] |= rand_bytes[j++]; in PQCLEAN_HQCRMRS192_AVX2_vect_set_random_fixed_weight()
109 uint8_t rand_bytes[VEC_N_SIZE_BYTES] = {0}; in PQCLEAN_HQCRMRS192_AVX2_vect_set_random() local
111 seedexpander(ctx, rand_bytes, VEC_N_SIZE_BYTES); in PQCLEAN_HQCRMRS192_AVX2_vect_set_random()
113 PQCLEAN_HQCRMRS192_AVX2_load8_arr(v, VEC_N_SIZE_64, rand_bytes, VEC_N_SIZE_BYTES); in PQCLEAN_HQCRMRS192_AVX2_vect_set_random()
/dports/security/R-cran-openssl/openssl/man/
H A Drand_bytes.Rd3 \name{rand_bytes}
4 \alias{rand_bytes}
8 rand_bytes(n = 1)
18 \code{rand_bytes} generates \code{n} random cryptographically secure bytes
21 rnd <- rand_bytes(10)
27 rnd <- rand_bytes(100000)
/dports/mail/postfix-current/postfix-3.7-20211107/src/tls/
H A Dtls_prng_dev.c116 size_t rand_bytes; in tls_prng_dev_read() local
122 rand_bytes = sizeof(buffer); in tls_prng_dev_read()
124 rand_bytes = len; in tls_prng_dev_read()
126 count = timed_read(dev->fd, buffer, rand_bytes, dev->timeout, (void *) 0); in tls_prng_dev_read()
135 myname, (long) rand_bytes, dev->name); in tls_prng_dev_read()
/dports/www/chromium-legacy/chromium-88.0.4324.182/chrome/browser/chromeos/smb_client/
H A Dsmb_file_system_id.cc39 char rand_bytes[kRandomIdBytes]; in GenerateRandomId() local
40 base::RandBytes(rand_bytes, sizeof(rand_bytes)); in GenerateRandomId()
43 return base::HexEncode(rand_bytes, sizeof(rand_bytes)); in GenerateRandomId()
/dports/net-im/tox/c-toxcore-0.2.13/auto_tests/
H A Dcrypto_test.c14 static void rand_bytes(uint8_t *b, size_t blen) in rand_bytes() function
167 rand_bytes(m, mlen); in START_TEST()
168 rand_bytes(n, CRYPTO_NONCE_SIZE); in START_TEST()
223 rand_bytes(m1, sizeof(m1)); in START_TEST()
224 rand_bytes(m2, sizeof(m2)); in START_TEST()
225 rand_bytes(n, CRYPTO_NONCE_SIZE); in START_TEST()
228 rand_bytes(k, CRYPTO_SHARED_KEY_SIZE); in START_TEST()
257 rand_bytes(m1, sizeof(m1)); in START_TEST()
258 rand_bytes(n, CRYPTO_NONCE_SIZE); in START_TEST()
/dports/devel/cargo-c/cargo-c-0.9.6+cargo-0.58/cargo-crates/openssl-0.10.38/src/
H A Drand.rs34 pub fn rand_bytes(buf: &mut [u8]) -> Result<(), ErrorStack> { in rand_bytes() function
58 use super::rand_bytes;
63 rand_bytes(&mut buf).unwrap(); in test_rand_bytes()

12345678910>>...21