Searched refs:random (Results 1 - 25 of 67) sorted by relevance

123

/darwin-on-arm/xnu/bsd/libkern/
H A Drandom.c60 * @(#)random.c 8.1 (Berkeley) 6/10/93
64 #include <sys/random.h>
66 #include <dev/random/randomdev.h>
69 * Pseudo-random number generator for randomizing the profiling clock,
74 random(void) function
H A Dlibkern.h143 extern u_int32_t random(void);
/darwin-on-arm/xnu/bsd/dev/random/YarrowCoreLib/include/
H A DyarrowUtils.h47 #include <dev/random/YarrowCoreLib/include/yarrow.h>
/darwin-on-arm/xnu/bsd/netinet6/
H A Dip6_id.c65 * such a mathematical system to generate more random (yet non-repeating)
100 * seed = random (bits - 1) bit
102 * j = random so that gcd(j,n-1) == 1
105 * X[0] = random seed.
107 * with a = 7^(even random) mod m,
108 * b = random with gcd(b,m) == 1
124 #include <sys/random.h>
210 * cycles of random numbers and thus avoiding reuse of ids.
224 p->ru_x = random() % p->ru_m;
226 /* (bits - 1) bits of random see
[all...]
H A Dmld6_var.h113 #define MLD_RANDOM_DELAY(X) (random() % (X) + 1)
/darwin-on-arm/xnu/bsd/dev/random/
H A Drandomdev.h47 #include <sys/random.h>
/darwin-on-arm/xnu/bsd/dev/random/YarrowCoreLib/port/
H A Dsmf.c36 #include <dev/random/YarrowCoreLib/src/smf.h>
/darwin-on-arm/xnu/bsd/man/man4/
H A DMakefile34 random.4 \
/darwin-on-arm/xnu/bsd/netat/
H A Dadsp_InitGlobals.c66 adspGlobal.lastCID = (random() & 0xffff);
H A Dddp_aarp.c121 /* pick a random addr or start with what we have from initial_node addr */
712 amt_ptr->last_time = (int)random();
851 node = ((u_char)(random() & 0xff)) % 0xfd + 2;
893 new_net= ((at_net_al)random() & 0xffff);
894 /* two-byte random number generated... now fit it in
914 new_net = (at_net_al)random() & 0x00ff;
/darwin-on-arm/xnu/tools/tests/libMicro/apple/
H A Dmbr_check_membership.c205 index = random() % (uid_range+1);
206 gindex = random() % (gid_range+1);
H A Dgetaddrinfo_host.c206 index = HOSTNAME_LEN * (random() % host_range);
H A Dgetgrgid.c172 gid_t gid = gid_min + random() % gid_range ;
H A Dgetgrnam.c171 int index = (random() % optRecords) * GROUPNAME_LEN;
H A Dgetpwnam.c204 int index = (random() % optRecords) * USERNAME_LEN;
H A Dgetpwuid.c198 uid_t uid = uid_min + random() % uid_range ;
H A Dmbr_check_service_membership.c234 sacl_chosen = sacl[random() % numSACL];
/darwin-on-arm/xnu/osfmk/arm/
H A Dloose_ends.c81 * Arc4 random number generator for OpenBSD.
91 * regenerate the same random sequence twice, so this can't be used
92 * for encryption, but will generate good random numbers.
251 * Calculate a uniformly distributed random number less than upper_bound
254 * Uniformity is achieved by generating new random numbers until the one
256 * guarantees the selected random number will be inside
344 * Return a "uniformly random" random number.
354 } random; local
356 random
[all...]
/darwin-on-arm/xnu/bsd/netinet/
H A Dip_dummynet.h293 int random ; /* random value (scaled) */ member in struct:dn_flow_queue
399 struct dn_heap idle_heap ; /* random extract - key Start=Finish time */
459 int random ; /* random value (scaled) */ member in struct:dn_flow_queue_32
537 struct dn_heap_32 idle_heap ; /* random extract - key Start=Finish time */
584 int random ; /* random value (scaled) */ member in struct:dn_flow_queue_64
662 struct dn_heap_64 idle_heap ; /* random extract - key Start=Finish time */
H A Dip_id.c8 * such a mathematical system to generate more random (yet non-repeating)
41 * seed = random 15bit
43 * j = random so that gcd(j,n-1) == 1
46 * X[0] = random seed.
48 * with a = 7^(even random) mod m,
49 * b = random with gcd(b,m) == 1
63 #include <sys/random.h>
87 static u_int32_t tmp; /* Storage for unused random */
127 * cycles of random numbers and thus avoiding reuse of ids.
143 /* 15 bits of random see
[all...]
H A Digmp_var.h188 #define IGMP_RANDOM_DELAY(X) (random() % (X) + 1)
/darwin-on-arm/xnu/libkern/uuid/
H A Duuid.c38 #include <sys/random.h>
/darwin-on-arm/xnu/libkern/kxld/tests/
H A Dkxld_array_test.c142 *item = (u_int) (random() % UINT_MAX);
H A Dkxld_dict_test.c128 tmp_key[j] = (random() % 26) + 'a';
/darwin-on-arm/xnu/bsd/sys/
H A DMakefile27 proc.h proc_info.h ptrace.h queue.h quota.h random.h reboot.h resource.h resourcevar.h \
73 proc.h queue.h random.h resource.h \

Completed in 47 milliseconds

123