/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | arc4random.c | 91 uint8_t rnd[ARC4_KEYSZ + ARC4_IVSZ]; in arc4_stir() local 94 if (getentropy(rnd, sizeof (rnd)) == -1) in arc4_stir() 98 arc4_init(rnd, sizeof (rnd)); in arc4_stir() 101 arc4_rekey(rnd, sizeof (rnd)); in arc4_stir() 103 explicit_bzero(rnd, sizeof (rnd)); in arc4_stir()
|
/titanic_44/usr/src/uts/common/ipp/meters/ |
H A D | tswtcl.c | 70 uint32_t min = 0, additive, rnd; in tswtcl_process() local 143 rnd = min + (additive % (tswtcl_data->avg_rate - min + 1)); in tswtcl_process() 146 if (aminusc >= rnd) { in tswtcl_process() 168 rnd = min + (additive % (tswtcl_data->avg_rate - min + 1)); in tswtcl_process() 172 if (aminusp >= rnd) { in tswtcl_process() 174 } else if ((cfg_parms->pminusc + aminusp) >= rnd) { in tswtcl_process()
|
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | combine_keys.c | 83 unsigned char *r1, *r2, *combined, *rnd, *output; in krb5int_c_combine_keys() local 126 if ((rnd = (unsigned char *) malloc(keybytes)) == NULL) { in krb5int_c_combine_keys() 135 free(rnd); in krb5int_c_combine_keys() 142 free(rnd); in krb5int_c_combine_keys() 194 krb5_nfold((keybytes * 2) * 8, combined, keybytes * 8, rnd); in krb5int_c_combine_keys() 201 printf(" %02x", (unsigned char) rnd[i]); in krb5int_c_combine_keys() 212 randbits.data = (char *) rnd; in krb5int_c_combine_keys() 282 memset(rnd, 0, keybytes); in krb5int_c_combine_keys() 288 free(rnd); in krb5int_c_combine_keys()
|
/titanic_44/usr/src/lib/libc/amd64/fp/ |
H A D | fpsetround.c | 50 oldrnd = (fp_rnd)cw.rnd; in fpsetround() 51 cw.rnd = newrnd; in fpsetround()
|
H A D | fpgetround.c | 45 return ((fp_rnd)cw.rnd); in fpgetround()
|
/titanic_44/usr/src/lib/libc/i386/fp/ |
H A D | fpsetround.c | 62 oldrnd = (fp_rnd)cw.rnd; in fpsetround() 63 cw.rnd = newrnd; in fpsetround()
|
H A D | fpgetround.c | 45 return ((fp_rnd)cw.rnd); in fpgetround()
|
/titanic_44/usr/src/cmd/ssh/ssh-keysign/ |
H A D | ssh-keysign.c | 160 u_int32_t rnd[256]; in main() local 202 rnd[i] = arc4random(); in main() 203 RAND_seed(rnd, sizeof(rnd)); in main()
|
/titanic_44/usr/src/lib/crypt_modules/bsdbf/ |
H A D | arc4random.c | 95 uint rnd[(128 - sizeof(struct timeval)) / sizeof(uint)]; member 101 (void) read(fd, rdat.rnd, sizeof(rdat.rnd));
|
/titanic_44/usr/src/uts/common/io/usb/clients/usbser/ |
H A D | usbser_rseq.c | 126 int rnd, rval = RSEQ_OK, i; in rseq_debug() local 133 rnd = random() % num; in rseq_debug() 134 rval = func(rseq, num, arg, flags, sarg1, rnd); in rseq_debug()
|
/titanic_44/usr/src/head/ |
H A D | ieeefp.h | 269 rnd: 2, /* rounding control field */ member 290 rnd: 2, /* rounding control */ member
|
/titanic_44/usr/src/cmd/ssh/libssh/common/ |
H A D | packet.c | 496 u_int32_t rnd = 0; in packet_send1() local 522 rnd = arc4random(); in packet_send1() 523 cp[7 - i] = rnd & 0xff; in packet_send1() 524 rnd >>= 8; in packet_send1() 731 u_int32_t rnd = 0; in packet_send2_wrapped() local 791 rnd = arc4random(); in packet_send2_wrapped() 792 cp[i] = rnd & 0xff; in packet_send2_wrapped() 793 rnd >>= 8; in packet_send2_wrapped() 1697 u_int32_t rnd = 0; in packet_send_ignore() local 1710 rnd = arc4random(); in packet_send_ignore() [all …]
|
/titanic_44/usr/src/uts/common/os/ |
H A D | mutex.c | 311 ulong_t rnd; /* random factor */ in default_lock_delay() local 320 rnd = (((long)curthread >> PTR24_LSB) ^ (long)MUTEX_GETTICK()); in default_lock_delay() 321 cur_backoff = (uint_t)(rnd % (backoff - mutex_backoff_base + 1)) + in default_lock_delay()
|
/titanic_44/usr/src/uts/sparc/sys/fpu/ |
H A D | fpu_simulator.h | 93 unsigned int rnd : 2; /* rounding direction */ member 123 #define rnd fsr.rnd macro
|
/titanic_44/usr/src/cmd/ssh/sshd/ |
H A D | sshd.c | 475 u_int32_t rnd = 0; in generate_ephemeral_server_key() local 488 rnd = arc4random(); in generate_ephemeral_server_key() 489 sensitive_data.ssh1_cookie[i] = rnd & 0xff; in generate_ephemeral_server_key() 490 rnd >>= 8; in generate_ephemeral_server_key() 1748 u_int32_t rnd = 0; in do_ssh1_kex() local 1761 rnd = arc4random(); in do_ssh1_kex() 1762 cookie[i] = rnd & 0xff; in do_ssh1_kex() 1763 rnd >>= 8; in do_ssh1_kex()
|
/titanic_44/usr/src/cmd/isns/isnsd/ |
H A D | esi.c | 387 double rnd; in ev_add() local 400 rnd = (rand() + 1) / (double)(RAND_MAX + 1); in ev_add() 401 t = (uint32_t)(intval * rnd); in ev_add()
|
/titanic_44/usr/src/cmd/ssh/ssh/ |
H A D | clientloop.c | 299 u_int32_t rnd = 0; in client_x11_get_proto() local 306 rnd = arc4random(); in client_x11_get_proto() 308 rnd & 0xff); in client_x11_get_proto() 309 rnd >>= 8; in client_x11_get_proto()
|
/titanic_44/usr/src/uts/common/fs/proc/ |
H A D | prcontrol.c | 111 size_t rnd; in ctlsize() local 207 rnd = size & (sizeof (long) - 1); in ctlsize() 209 if (rnd != 0) in ctlsize() 210 size += sizeof (long) - rnd; in ctlsize() 532 size_t rnd; in ctlsize32() local 624 rnd = size & (sizeof (int32_t) - 1); in ctlsize32() 626 if (rnd != 0) in ctlsize32() 627 size += sizeof (int32_t) - rnd; in ctlsize32()
|
/titanic_44/usr/src/uts/common/inet/ip/ |
H A D | ip_ndp.c | 4940 clock_t rnd, frac; in nce_fuzz_interval() local 4942 (void) random_get_pseudo_bytes((uint8_t *)&rnd, sizeof (rnd)); in nce_fuzz_interval() 4944 rnd &= (1ul << (NBBY * sizeof (rnd) - 1)) - 1; in nce_fuzz_interval() 4949 intv = (rnd % intv) + 1; in nce_fuzz_interval() 4955 if ((intv = intv - frac + rnd % (2 * frac + 1)) <= 0) in nce_fuzz_interval()
|
H A D | sadb.c | 7542 uint8_t rnd; local 7547 (void) random_get_pseudo_bytes(&rnd, sizeof (rnd)); 7548 rnd = (rnd & 0xF) + 8; 7549 assoc->ipsa_softexpiretime -= rnd; 7550 assoc->ipsa_softaddlt -= rnd;
|
/titanic_44/usr/src/uts/sparc/fpu/ |
H A D | fpu_simulator.c | 191 pfpsd->fp_direction = GSR_IM(gsr) ? GSR_IRND(gsr) : fsr.rnd; in _fp_fpu_simulator()
|