/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | rand.c | 50 * threads may be calling rand_r() using a pointer to the same seed. 59 rand_mt(uint_t *seed) argument 66 old_seed = *(volatile uint_t *)seed; 68 if (atomic_cas_uint(seed, old_seed, new_seed) == old_seed) 75 rand_r(uint_t *seed) argument 78 return (rand_mt(seed)); 79 return (NEXT_VALUE(*seed = NEXT_SEED(*seed))); 83 srand(uint_t seed) argument 85 rand_seed = seed; [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | gen_seqnum.c | 46 krb5_data seed; local 55 seed.length = key->length; 56 seed.data = key->contents; 57 if ((retval = krb5_c_random_add_entropy(context, KRB5_C_RANDSOURCE_TRUSTEDPARTY, &seed))) 61 seed.length = sizeof(*seqno); 62 seed.data = (char *) seqno; 63 retval = krb5_c_random_make_octets(context, &seed);
|
H A D | gen_subkey.c | 44 krb5_data seed; 46 seed.length = key->length; 47 seed.data = key->contents; 48 if ((retval = krb5_c_random_add_entropy(context, KRB5_C_RANDSOURCE_TRUSTEDPARTY, &seed)))
|
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/ |
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;
|
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;
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | random.c | 40 srandom(seed) 41 u_long seed; 43 randseed = seed;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | magic.c | 44 * Attempts to compute a random number seed which will not repeat. 51 long seed; local 55 seed = get_host_seed() ^ t.tv_sec ^ t.tv_usec ^ getpid(); 56 srand48(seed);
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | util_seed.c | 31 kg_make_seed(context, key, seed) 34 unsigned char *seed; 49 code = kg_encrypt(context, tmpkey, KG_USAGE_SEAL, NULL, zeros, seed, 16);
|
/illumos-gate/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); 60 q = seed;
|
H A D | tmpfile.c | 49 static char seed[] = { 'a', 'a', 'a', '\0' }; variable 67 (void) strcat(tfname, seed); 70 q = seed;
|
H A D | tempnam.c | 49 static char seed[] = "AAA"; variable 88 (void) strcat(p, seed); 90 q = seed;
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | misc.c | 32 static int32_t seed = 0; local 34 if (!seed) /* Initialize linear congruential generator */ 35 seed = currticks() + *(int32_t *)&arptable[ARP_CLIENT].node 39 q = seed/53668; 40 if ((seed = 40014*(seed-53668*q) - 12211*q) < 0) seed += 2147483563L; 41 return seed;
|
/illumos-gate/usr/src/cmd/svc/common/ |
H A D | i.manifest | 77 # If the repository does not yet exist, create it from the appropriate seed. If 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
|
/illumos-gate/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;
|
/illumos-gate/usr/src/test/zfs-tests/cmd/readmmap/ |
H A D | readmmap.c | 57 unsigned seed; local 94 seed = time(NULL); 95 srandom(seed);
|
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | net.c | 131 xfer_file(int sockfd, caddr_t pa, int filesize, int seed) argument 143 timeout = seed = seed ? seed : 10; 156 if (timeout < (seed * 4)) { 159 } else if (timeout == (seed * 4)) { 173 } else if (timeout > (seed * 4)) { 176 timeout = (seed * 10); 187 timeout = seed;
|
/illumos-gate/usr/src/cmd/svc/ |
H A D | Makefile | 30 SUBDIR_REPO= milestone profile seed 65 seed: svccfg configd
|
/illumos-gate/usr/src/test/zfs-tests/cmd/file_trunc/ |
H A D | file_trunc.c | 56 static int seed = 0; variable 72 " [-o offset] [-s seed] [-r] [-v] filename\n", execname); 108 seed = time(NULL); 132 seed = atoi(optarg); 164 (void) fprintf(stderr, "Seed = %d\n", seed); 166 srandom(seed);
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_crypt.c | 119 int seed; local 130 seed = 123; 132 seed = seed*buf[i] + i; 138 seed = 5*seed + buf[i%13]; 139 random = seed % 65521;
|
/illumos-gate/usr/src/lib/libnsl/key/ |
H A D | gen_dhkeys.c | 62 * Generate a seed 65 getseed(seed, seedsize, pass) 66 char *seed; 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);
|
/illumos-gate/usr/src/cmd/svc/seed/ |
H A D | Makefile | 28 LIBSVCSEED = $(ROOT)/lib/svc/seed 32 # Because seed repository construction requires a functioning repository, a 38 # We build and deliver 3 seed repositories: 48 # Manifests needed by all seed repositories. If you change this, you 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/miniroo [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | gename.c | 96 time_t seed; local 102 (void) time(&seed); /* crank up the sequence initializer */ 103 srand((unsigned)seed);
|
/illumos-gate/usr/src/lib/libsasl/include/ |
H A D | saslutil.h | 83 /* seed random number generator */ 84 LIBSASL_API void sasl_randseed(sasl_rand_t *rpool, const char *seed,
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | drand48.c | 160 long seed; local 168 * seed as it will just pickup whatever random garbage has 172 if (random_get_bytes((uint8_t *)&seed, sizeof (seed)) == 0) 174 ipf_r_srand48(seed);
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | cmd.c | 75 unsigned int seed; local 82 * as 'seed' to generate a random number. Then, 85 * the seed so that the random number is always 99 seed = (unsigned int) tmbuf->tm_sec; 100 seed ^= pid; 101 random = rand_r(&seed);
|