This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Unresolved external -- read_random( )


Index: support.c
===================================================================
RCS file:
/cvs/ecos/ecos-opt/net/net/bsd_tcpip/current/src/ecos/support.c,v
retrieving revision 1.9
diff -r1.9 support.c
564a565,582
> int
> read_random(void *buf, int count)
> {
>       int randval;
>       int size, i;
>
>       /* Fill buf[] with random output */
>       for (i = 0; i < count; i+= (int)sizeof(int)) {
>               randval = arc4random();
>               size = (count - i) < (int)sizeof(int)
>                   ? (count - i)
>                   : sizeof(int);
>               memcpy(&((char *)buf)[i], &randval,
(size_t)size);
>       }
>
>       return count;
> }
>
[mjerdone@sonoita1 ecos]$ cd ..
[mjerdone@sonoita1 src]$ cd ..
[mjerdone@sonoita1 current]$ cvs diff ChangeLog
Index: ChangeLog
===================================================================
RCS file:
/cvs/ecos/ecos-opt/net/net/bsd_tcpip/current/ChangeLog,v
retrieving revision 1.31
diff -r1.31 ChangeLog
43a44,47
> 2003-09-08    Matt Jerdonek <maj1224@yahoo.com>
>       * src/ecos/support.c:
>       Added code for read_random
>

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]