/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | rand.c | 59 rand_mt(uint_t *seed) in rand_mt() argument 66 old_seed = *(volatile uint_t *)seed; in rand_mt() 68 if (atomic_cas_uint(seed, old_seed, new_seed) == old_seed) in rand_mt() 75 rand_r(uint_t *seed) in rand_r() argument 78 return (rand_mt(seed)); in rand_r() 79 return (NEXT_VALUE(*seed = NEXT_SEED(*seed))); in rand_r() 83 srand(uint_t seed) in srand() argument 85 rand_seed = seed; in srand()
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | gen_seqnum.c | 46 krb5_data seed; in krb5_generate_seq_number() local 55 seed.length = key->length; in krb5_generate_seq_number() 56 seed.data = key->contents; in krb5_generate_seq_number() 57 if ((retval = krb5_c_random_add_entropy(context, KRB5_C_RANDSOURCE_TRUSTEDPARTY, &seed))) in krb5_generate_seq_number() 61 seed.length = sizeof(*seqno); in krb5_generate_seq_number() 62 seed.data = (char *) seqno; in krb5_generate_seq_number() 63 retval = krb5_c_random_make_octets(context, &seed); in krb5_generate_seq_number()
|
H A D | gen_subkey.c | 44 krb5_data seed; in krb5_generate_subkey() 46 seed.length = key->length; in krb5_generate_subkey() 47 seed.data = key->contents; in krb5_generate_subkey() 48 if ((retval = krb5_c_random_add_entropy(context, KRB5_C_RANDSOURCE_TRUSTEDPARTY, &seed))) in krb5_generate_subkey()
|
/titanic_41/usr/src/lib/libbc/libc/stdio/common/ |
H A D | tempnam.c | 42 static char seed[4]; variable 52 if (seed[0] == 0) 53 seed[0] = seed[1] = seed[2] = 'A'; 77 (void)strcat(p, seed); 79 q = seed;
|
H A D | tmpnam.c | 36 static char str[L_tmpnam], seed[] = { 'a', 'a', 'a', '\0' }; variable 47 (void) strcat(p, seed); 50 q = seed;
|
/titanic_41/usr/src/grub/grub-0.97/netboot/ |
H A D | misc.c | 32 static int32_t seed = 0; in random() local 34 if (!seed) /* Initialize linear congruential generator */ in random() 35 seed = currticks() + *(int32_t *)&arptable[ARP_CLIENT].node in random() 39 q = seed/53668; in random() 40 if ((seed = 40014*(seed-53668*q) - 12211*q) < 0) seed += 2147483563L; in random() 41 return seed; in random()
|
/titanic_41/usr/src/cmd/lp/model/netpr/ |
H A D | net.c | 131 xfer_file(int sockfd, caddr_t pa, int filesize, int seed) in xfer_file() argument 143 timeout = seed = seed ? seed : 10; in xfer_file() 156 if (timeout < (seed * 4)) { in xfer_file() 159 } else if (timeout == (seed * 4)) { in xfer_file() 173 } else if (timeout > (seed * 4)) { in xfer_file() 176 timeout = (seed * 10); in xfer_file() 187 timeout = seed; in xfer_file()
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/crypto/crc32/ |
H A D | crc.c | 159 krb5_const krb5_pointer seed, 168 krb5_const krb5_pointer seed, 173 crc32_sum_func(in, in_length, seed, seed_length, outcksum) in crc32_sum_func() argument 176 krb5_const krb5_pointer seed; 207 crc32_verify_func(cksum, in, in_length, seed, seed_length) in crc32_verify_func() argument 211 krb5_const krb5_pointer seed;
|
/titanic_41/usr/src/cmd/crypt/ |
H A D | crypt.c | 57 long seed; local 73 seed = 123; 75 seed = seed*buf[i] + i; 81 seed = 5*seed + buf[i%13]; 82 random = seed % 65521;
|
/titanic_41/usr/src/lib/libnsl/key/ |
H A D | gen_dhkeys.c | 65 getseed(seed, seedsize, pass) in getseed() argument 66 char *seed; in getseed() 82 seed[i] = (random() & 0xff) ^ pass[i % 8]; 129 unsigned short seed[KEYSIZE/BASEBITS + 1]; local 137 getseed((char *)seed, (int)sizeof (seed), (uchar_t *)pass); 139 r = seed[i] % ((unsigned short)BASE);
|
/titanic_41/usr/src/lib/libsldap/common/ |
H A D | ns_crypt.c | 119 int seed; in c_setup() local 130 seed = 123; in c_setup() 132 seed = seed*buf[i] + i; in c_setup() 138 seed = 5*seed + buf[i%13]; in c_setup() 139 random = seed % 65521; in c_setup()
|
/titanic_41/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_tdaemon.c | 56 #define GET_SEED(ndx) (gld[ndx] . seed & SIZEMASK) 96 int from, int seed); 97 static void _sd_test_rwloop_seq(int i, int loops, int seed, int forw); 105 static void _sd_direct_test(int c, int loop, int seed, int type); 149 volatile int seed; member 370 test_dma_loop(gld[who].loop, gld[who].seed); in _sd_idle_daemon() 430 long seed; in _sd_test_start() member 434 uap->from, uap->seed); in _sd_test_start() 500 _fork_test_daemon(int num_disks, int test_typ, int loop_cnt, int from, int seed) in _fork_test_daemon() argument 507 return (test_control(test_typ, loop_cnt, from, seed)); in _fork_test_daemon() [all …]
|
/titanic_41/usr/src/test/zfs-tests/cmd/file_trunc/ |
H A D | file_trunc.c | 56 static int seed = 0; variable 108 seed = time(NULL); in parse_options() 132 seed = atoi(optarg); in parse_options() 164 (void) fprintf(stderr, "Seed = %d\n", seed); in parse_options() 166 srandom(seed); in parse_options()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | magic.c | 51 long seed; in magic_init() local 55 seed = get_host_seed() ^ t.tv_sec ^ t.tv_usec ^ getpid(); in magic_init() 56 srand48(seed); in magic_init()
|
/titanic_41/usr/src/cmd/svc/common/ |
H A D | i.manifest | 84 [ -f $PKG_INSTALL_ROOT/lib/svc/seed/nonglobal.db ] && \ 85 $CP $PKG_INSTALL_ROOT/lib/svc/seed/nonglobal.db $repfile 87 [ -f $PKG_INSTALL_ROOT/lib/svc/seed/global.db ] && \ 88 $CP $PKG_INSTALL_ROOT/lib/svc/seed/global.db $repfile
|
/titanic_41/usr/src/lib/libc/port/stdio/ |
H A D | tmpnam_r.c | 43 static char seed[] = { 'a', 'a', 'a', '\0' }; variable 57 (void) strcat(p, seed); in tmpnam_r() 60 q = seed; in tmpnam_r()
|
H A D | tmpfile.c | 49 static char seed[] = { 'a', 'a', 'a', '\0' }; variable 67 (void) strcat(tfname, seed); in _common() 70 q = seed; in _common()
|
H A D | tempnam.c | 49 static char seed[] = "AAA"; variable 88 (void) strcat(p, seed); in tempnam() 90 q = seed; in tempnam()
|
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | util_seed.c | 31 kg_make_seed(context, key, seed) in kg_make_seed() argument 34 unsigned char *seed; 49 code = kg_encrypt(context, tmpkey, KG_USAGE_SEAL, NULL, zeros, seed, 16);
|
/titanic_41/usr/src/cmd/svc/seed/ |
H A D | Makefile | 28 LIBSVCSEED = $(ROOT)/lib/svc/seed 134 SVCCFG_REPOSITORY=$(SRC)/cmd/svc/seed/common.db \ 145 SVCCFG_REPOSITORY=$(SRC)/cmd/svc/seed/global.db \ 156 SVCCFG_REPOSITORY=$(SRC)/cmd/svc/seed/nonglobal.db \ 167 SVCCFG_REPOSITORY=$(SRC)/cmd/svc/seed/miniroot.db \ 178 SVCCFG_REPOSITORY=$(SRC)/cmd/svc/seed/miniroot.db \ 184 SVCCFG_REPOSITORY=$(SRC)/cmd/svc/seed/miniroot.db \
|
/titanic_41/usr/src/lib/libast/common/uwin/ |
H A D | rand48.c | 150 extern unsigned short *seed48(unsigned short seed[3]) in seed48() 160 X[0] = seed[2]; in seed48() 161 X[1] = seed[1]; in seed48() 162 X[2] = seed[0]; in seed48()
|
/titanic_41/usr/src/test/zfs-tests/cmd/readmmap/ |
H A D | readmmap.c | 57 unsigned seed; in main() local 94 seed = time(NULL); in main() 95 srandom(seed); in main()
|
/titanic_41/usr/src/uts/common/os/ |
H A D | bitset.c | 233 bitset_find_in_word(ulong_t w, uint_t seed) in bitset_find_in_word() argument 241 rotate_bit = seed % BT_NBIPUL; in bitset_find_in_word() 260 uint_t seed; in bitset_find() local 262 seed = CPU_PSEUDO_RANDOM(); in bitset_find() 265 start = seed % b->bs_words; in bitset_find() 269 elt = bitset_find_in_word(b->bs_set[i], seed); in bitset_find()
|
/titanic_41/usr/src/lib/storage/libg_fc/common/ |
H A D | cmd.c | 75 unsigned int seed; in wait_random_time() local 99 seed = (unsigned int) tmbuf->tm_sec; in wait_random_time() 100 seed ^= pid; in wait_random_time() 101 random = rand_r(&seed); in wait_random_time()
|
/titanic_41/usr/src/uts/common/inet/ipf/ |
H A D | drand48.c | 160 long seed; in EXPORT0() local 172 if (random_get_bytes((uint8_t *)&seed, sizeof (seed)) == 0) in EXPORT0() 174 ipf_r_srand48(seed); in EXPORT0()
|