/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);
|
/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/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/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/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/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/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);
|
/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/uts/common/os/ |
H A D | ddi_nodeid.c | 57 * The initial seed of available nodeids: 1 .. 0x10000000 67 static struct available seed = { variable in typeref:struct:available 176 * Copy the seed into kmem_alloc-ed memory so we don't have to 180 *np = seed; 308 * manage, we simply succeed. The initial seed may be
|
/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/common/zfs/ |
H A D | zpool_prop.c | 213 zpool_prop_random_value(zpool_prop_t prop, uint64_t seed) argument 215 return (zprop_random_value(prop, seed, ZFS_TYPE_POOL));
|
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/ |
H A D | generic_key.c | 53 * seed the random generator. Here we use the time of day and a supplied 54 * password for generating the seed. 107 char *pass /* password to seed with for private key */) 117 unsigned char seed; local 139 seed = random() ^ pass[i % 8]; 141 tmp = mp_itom(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/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/cmd/ipf/tools/ |
H A D | ippool_y.y | 210 | seed 211 | size seed 387 seed: IPT_SEED '=' YY_NUMBER { ipht.iph_seed = $3; } label 413 { "seed", IPT_SEED },
|
/illumos-gate/usr/src/lib/libast/common/path/ |
H A D | pathtemp.c | 66 * /seed dir specifies pseudo-random generator seed 95 int seed; member in struct:__anon2659 150 else if (streq(pfx, "seed")) 152 tmp.key = (tmp.seed = (tmp.rng = dir ? (uint32_t)strtoul(dir, NiL, 0) : (uint32_t)1) != 0)? (uint32_t)0x63c63cd9L : 0; 181 if (tmp.seed) 291 if (!tmp.rng || !tmp.seed && (attempt || tmp.pid != getpid())) 318 if (!tmp.seed)
|
/illumos-gate/usr/src/lib/libast/common/uwin/ |
H A D | rand48.c | 150 extern unsigned short *seed48(unsigned short seed[3]) argument 160 X[0] = seed[2]; 161 X[1] = seed[1]; 162 X[2] = seed[0];
|
/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/lib/crypt_modules/bsdbf/ |
H A D | bcrypt.c | 168 uint32_t seed = 0; local 172 seed = arc4random(); 173 csalt[i] = seed & 0xff; 174 seed = seed >> 8;
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | old_api_glue.c | 210 krb5_const_pointer seed, size_t seed_length, 224 key.contents = (unsigned char*)seed; 248 size_t in_length, krb5_const_pointer seed, 262 key.contents = (unsigned char*)seed; 208 krb5_calculate_checksum(krb5_context context, krb5_cksumtype ctype, krb5_const_pointer in, size_t in_length, krb5_const_pointer seed, size_t seed_length, krb5_checksum *outcksum) argument 246 krb5_verify_checksum(krb5_context context, krb5_cksumtype ctype, const krb5_checksum *cksum, krb5_const_pointer in, size_t in_length, krb5_const_pointer seed, size_t seed_length) argument
|
/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);
|