Searched defs:random (Results 1 - 22 of 22) sorted by relevance

/illumos-gate/usr/src/boot/lib/libstand/
H A Drandom.c29 * @(#)random.c 8.1 (Berkeley) 6/10/93
47 * Pseudo-random number generator for randomizing the profiling clock,
52 random() function
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_upgrade/
H A Dzpool_upgrade.kshlib41 # We import the pool, and create some random data in the pool.
57 # Put some random contents into the pool
59 dd if=/dev/urandom of=/$pool_name/random.$i \
143 # A simple function to get a random number between two bounds
149 function random function
/illumos-gate/usr/src/test/zfs-tests/tests/functional/redundancy/
H A Dredundancy.kshlib48 # Get random number between min and max number.
53 function random function
/illumos-gate/usr/src/cmd/dtrace/test/cmd/badioctl/
H A Dbadioctl.c61 int fd = -1, random, ps = sysconf(_SC_PAGESIZE); local
66 if ((random = open("/dev/random", O_RDONLY)) == -1)
67 fatal("couldn't open /dev/random");
102 * Every thousand iterations, change our random gunk.
104 read(random, addr, ps);
107 read(random, &ioc, sizeof (ioc));
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dcmd.c76 int random; local
82 * as 'seed' to generate a random number. Then,
85 * the seed so that the random number is always
87 * generate a random number at the same time.
98 /* get a random number. */
101 random = rand_r(&seed);
104 random = ((random % 500) + 100) * MILLISEC;
105 tval.tv_sec = random / MICROSEC;
106 tval.tv_usec = random
[all...]
/illumos-gate/usr/src/uts/common/io/usb/clients/usbser/
H A Dusbser_rseq.c38 #define random rseq_random macro
132 rnd = random() % num;
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dmisc.c28 RANDOM - compute a random number between 0 and 2147483647L or 2147483562?
30 int32_t random(void) function
/illumos-gate/usr/src/cmd/crypt/
H A Dcrypt.c55 unsigned random; local
82 random = seed % 65521;
84 ic = (random&MASK)%(k+1);
85 random >>= 8;
90 ic = (random&MASK) % k;
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_gids.c138 uint32_t random; local
150 * Get a 32-bit random #
152 if (sip_get_random((char *)&random, sizeof (random)) != 0)
164 (void) snprintf(guid, SIP_RANDOM_LEN + 1, "%u%u", random, time);
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_crypt.c117 unsigned random; local
139 random = seed % 65521;
141 ic = (random&MASK)%(k+1);
142 random >>= 8;
147 ic = (random&MASK) % k;
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Drandom.c33 * random.c:
34 * An improved random number generation package. In addition to the standard
38 * initialized to contain information for random number generation with that
43 * generates far better random numbers than a linear congruential generator.
53 * The random number generation technique is a linear feedback shift register
60 * by pseudo-random carries out of the lower bits. The total period of the
72 * For each of the currently supported random number generators, we have a
74 * many bytes of state info to support this random number generator), a degree
120 * away with just one pointer, but the code for random() is more efficient this
132 * Note that for efficiency of random(), w
365 random(void) function
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Drandom.c50 * random.c:
51 * An improved random number generation package. In addition to the standard
55 * initialized to contain information for random number generation with that
60 * generates far better random numbers than a linear congruential generator.
70 * The random number generation technique is a linear feedback shift register
77 * by pseudo-random carries out of the lower bits. The total period of the
89 * For each of the currently supported random number generators, we have a
91 * many bytes of state info to support this random number generator), a degree
137 * away with just one pointer, but the code for random() is more efficient this
149 * Note that for efficiency of random(), w
360 random(void) function
[all...]
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_bind.c213 tcp_update_next_port(in_port_t port, const tcp_t *tcp, boolean_t random) argument
219 if (random && tcp_random_anon_port != 0) {
225 * very likely (50%) for the random port to be smaller
228 * port to get the random port. It should fall into the
/illumos-gate/usr/src/lib/libast/common/uwin/
H A Drandom.c40 * @(#)random.c 5.5 (Berkeley) 7/6/88
45 #define random ______random macro
55 #undef random macro
63 extern long int random();
67 /* An improved random number generation package. In addition to the standard
71 then initialized to contain information for random number generation with
76 information and generates far better random numbers than a linear
85 for details). The random number generation technique is a linear feedback
92 also influenced by pseudo-random carries out of the lower bits. The
102 /* For each of the currently supported random numbe
352 extern long int random() function
[all...]
/illumos-gate/usr/src/cmd/luxadm/
H A Dlux_util.c85 int random; local
90 * as 'seed' to generate a random number. Then,
93 * the seed so that the random number is always
95 * generate a random number at the same time.
106 /* get a random number. */
109 random = rand_r(&seed);
112 random = ((random % 500) + 100) * MILLISEC;
113 tval.tv_sec = random / MICROSEC;
114 tval.tv_usec = random
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/
H A Din.rdisc.c60 #define random() rand() macro
527 (random() % 1000)/1000);
980 * (random() % 1000)/1000);
/illumos-gate/usr/src/uts/common/inet/udp/
H A Dudp.c56 #include <sys/random.h>
178 boolean_t random);
2525 udp_update_next_port(udp_t *udp, in_port_t port, boolean_t random) argument
2532 if (random && udp_random_anon_port != 0) {
2538 * very likely (50%) for the random port to be smaller
2541 * port to get the random port. It should fall into the
3404 * random streams modules sitting on top of us.
/illumos-gate/usr/src/uts/common/os/
H A Dlgrp.c172 * Size, in bytes, beyond which random memory allocation policy is applied
173 * to non-shared memory. Default is the maximum size, so random memory
185 * Size, in bytes, beyond which random memory allocation policy is applied to
3490 * shared memory under the respective random
3636 ushort_t random; local
3723 * then the default policy is random across lgroups.
3724 * Fallthrough to the random case.
3738 * Return a random leaf lgroup with memory
3757 * Pick a random offset within lgroups spanned
3760 random
[all...]
/illumos-gate/usr/src/uts/common/io/igb/
H A Digb_main.c2411 uint32_t random; local
2433 (void) random_get_pseudo_bytes((uint8_t *)&random,
2435 E1000_WRITE_REG(hw, E1000_RSSRK(i), random);
2479 uint32_t random; local
2501 (void) random_get_pseudo_bytes((uint8_t *)&random,
2503 E1000_WRITE_REG(hw, E1000_RSSRK(i), random);
/illumos-gate/usr/src/uts/common/io/ixgbe/
H A Dixgbe_main.c2948 uint32_t random; local
3014 * Fill out hash function seeds with a random constant
3017 (void) random_get_pseudo_bytes((uint8_t *)&random,
3019 IXGBE_WRITE_REG(hw, IXGBE_RSSRK(i), random);
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/
H A Dopenssl_spi.c4596 unsigned char *random = NULL; local
4691 random = malloc(bytes);
4692 if (random == NULL) {
4696 if (RAND_bytes(random, bytes) != 1) {
4701 rkey->keydata.val = (uchar_t *)random;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DuDNS.c71 mDNSlocal void SetRecordRetry(mDNS *const m, AuthRecord *rr, mDNSu32 random) argument
81 // Refresh at 70% + random (currently it is 0 to 10%)
82 rr->ThisAPInterval = 7 * (remaining/10) + (random ? random : mDNSRandom(remaining/10));
3482 mDNSlocal void hndlRecordUpdateReply(mDNS *m, AuthRecord *rr, mStatus err, mDNSu32 random) argument
3496 SetRecordRetry(m, rr, random);
3775 // If this is an ANNOUNCE packet, wait a random interval up to 5 seconds
4047 mDNSu32 random = mDNSRandom((mDNSs32)lease * mDNSPlatformOneSecond/10); local
4069 // We pass the random value to make sure that if we update multiple
4070 // records, they all get the same random valu
[all...]

Completed in 143 milliseconds