/macosx-10.5.8/xnu-1228.15.4/bsd/libkern/ |
H A D | random.c | 60 * @(#)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 D | libkern.h | 142 extern u_long random(void);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/random/YarrowCoreLib/include/ |
H A D | yarrowUtils.h | 47 #include <dev/random/YarrowCoreLib/include/yarrow.h>
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/ |
H A D | mld6_var.h | 39 #define MLD6_RANDOM_DELAY(X) (random() % (X) + 1)
|
H A D | nd6.h | 89 u_int8_t randomid[8]; /* current random ID */ 224 (((MIN_RANDOM_FACTOR * (x >> 10)) + (random() & \
|
H A D | in6_ifattach.c | 134 * (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 D | nd6_nbr.c | 1131 ntick = random() % (MAX_RTR_SOLICITATION_DELAY * hz); 1133 ntick = *tick_delay + random() % (hz / 2);
|
H A D | esp_output.c | 177 * 17 = (maximum padding length without random padding length) 523 /* random padding */ 549 pad = (random() % pad) * padbound;
|
H A D | frag6.c | 94 * 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 D | randomdev.h | 36 #include <sys/random.h>
|
H A D | randomdev.c | 44 #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 D | smf.c | 36 #include <dev/random/YarrowCoreLib/src/smf.h>
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/ |
H A D | igmp_var.h | 95 #define IGMP_RANDOM_DELAY(X) (random() % (X) + 1)
|
H A D | ip_id.c | 8 * 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 D | ip_dummynet.h | 257 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 D | ip_dummynet.c | 190 /* 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 D | in_dhcp.c | 177 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 D | Makefile | 33 random.4 \
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/ |
H A D | adsp_InitGlobals.c | 66 adspGlobal.lastCID = (random() & 0xffff);
|
H A D | ddp_aarp.c | 121 /* 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 D | ddp_rtmp.c | 199 register unsigned long atrandom = random();
|
/macosx-10.5.8/xnu-1228.15.4/libkern/uuid/ |
H A D | uuid.c | 38 #include <sys/random.h>
|
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/ |
H A D | Makefile | 43 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 D | vfs_fslog.c | 40 #include <dev/random/randomdev.h> 253 /* First message, generate random message ID */
|
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/ |
H A D | nfs_gss.c | 551 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();
|