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

12

/macosx-10.5.8/xnu-1228.15.4/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.h142 extern u_long random(void);
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/random/YarrowCoreLib/include/
H A DyarrowUtils.h47 #include <dev/random/YarrowCoreLib/include/yarrow.h>
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dmld6_var.h39 #define MLD6_RANDOM_DELAY(X) (random() % (X) + 1)
H A Dnd6.h89 u_int8_t randomid[8]; /* current random ID */
224 (((MIN_RANDOM_FACTOR * (x >> 10)) + (random() & \
H A Din6_ifattach.c134 * (1) random enough and (2) does not change across reboot.
152 /* generate 8 bytes of pseudo-random value. */
182 /* If there's no hisotry, start with a random seed. */
189 val32 = random() ^ tv.tv_usec;
209 /* generate 16 bytes of pseudo-random value. */
226 * use a random non-zero value as the last resort.
233 val32 = random() ^ tv.tv_usec;
444 /* last resort: get from random number source */
447 "%s: interface identifier generated by random number\n",
529 * Do not let in6_update_ifa() do DAD, since we need a random dela
[all...]
H A Dnd6_nbr.c1131 ntick = random() % (MAX_RTR_SOLICITATION_DELAY * hz);
1133 ntick = *tick_delay + random() % (hz / 2);
H A Desp_output.c177 * 17 = (maximum padding length without random padding length)
523 /* random padding */
549 pad = (random() % pad) * padbound;
H A Dfrag6.c94 * in many cases, random() here does NOT return random number
98 ip6_id = random() ^ tv.tv_usec;
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/random/
H A Drandomdev.h36 #include <sys/random.h>
H A Drandomdev.c44 #include <dev/random/randomdev.h>
45 #include <dev/random/YarrowCoreLib/include/yarrow.h>
194 * get a random block of data per fips 186-2
245 * If we got here, three sucessive checksums of the random number
258 panic("FIPS random self-test failed.");
272 printf ("Couldn't initialize Yarrow, /dev/random will not work.\n");
309 gYarrowGrp = lck_grp_alloc_init("random", gYarrowGrpAttr);
338 panic("FIPS random self test failed");
342 // now do the random block again to make sure that userland doesn't get predicatable data
374 UID_ROOT, GID_WHEEL, 0666, "random",
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/random/YarrowCoreLib/port/
H A Dsmf.c36 #include <dev/random/YarrowCoreLib/src/smf.h>
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Digmp_var.h95 #define IGMP_RANDOM_DELAY(X) (random() % (X) + 1)
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.
142 /* 15 bits of random see
[all...]
H A Dip_dummynet.h257 int random ; /* random value (scaled) */ member in struct:dn_flow_queue
361 struct dn_heap idle_heap ; /* random extract - key Start=Finish time */
H A Dip_dummynet.c190 /* contrary to the comment above random(), it does not actually
195 #define MY_RANDOM (random() & 0x7FFFFFFF)
1088 q->random = MY_RANDOM & 0xffff;
1094 if (SCALE_MUL(p_b, SCALE((int64_t) q->count)) > q->random) {
1097 /* after a drop we calculate a new random value */
1098 q->random = MY_RANDOM & 0xffff;
1216 goto dropit ; /* random pkt drop */
H A Din_dhcp.c177 return (((long)random()) / range_size + bottom);
923 /* get a random transaction id */
924 context->xid = random();
/macosx-10.5.8/xnu-1228.15.4/bsd/man/man4/
H A DMakefile33 random.4 \
/macosx-10.5.8/xnu-1228.15.4/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;
H A Dddp_rtmp.c199 register unsigned long atrandom = random();
/macosx-10.5.8/xnu-1228.15.4/libkern/uuid/
H A Duuid.c38 #include <sys/random.h>
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A DMakefile43 proc.h proc_info.h ptrace.h queue.h quota.h random.h reboot.h resource.h resourcevar.h \
79 proc.h queue.h quota.h random.h resource.h resourcevar.h \
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_fslog.c40 #include <dev/random/randomdev.h>
253 /* First message, generate random message ID */
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dnfs_gss.c551 nfsm_chain_add_32(error, &nmc_tmp, random()); // confounder bytes 1-4
552 nfsm_chain_add_32(error, &nmc_tmp, random()); // confounder bytes 4-8
1026 cp->gss_clnt_seqnum = (random() & 0xffff) + cp->gss_clnt_seqwin;
2080 nfsm_chain_add_32(error, nmc, random()); // confounder bytes 1-4
2081 nfsm_chain_add_32(error, nmc, random()); // confounder bytes 5-8
2209 * Give the client a random handle so that
2215 handle = random();

Completed in 180 milliseconds

12