Back to index

lightning-sunbird  0.9+nobinonly
Functions
prrng.c File Reference
#include "primpl.h"
#include <string.h>

Go to the source code of this file.

Functions

PRSize _pr_CopyLowBits (void *dst, PRSize dstlen, void *src, PRSize srclen)
 PR_IMPLEMENT (PRSize)

Function Documentation

PRSize _pr_CopyLowBits ( void dst,
PRSize  dstlen,
void src,
PRSize  srclen 
)

Definition at line 51 of file prrng.c.

{
    if (srclen <= dstlen) {
       memcpy(dst, src, srclen);
           return srclen;
    }
#if defined IS_BIG_ENDIAN
    memcpy(dst, (char*)src + (srclen - dstlen), dstlen);
#else
    memcpy(dst, src, dstlen);
#endif
    return dstlen;
}    

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 69 of file prrng.c.

{
    return( _PR_MD_GET_RANDOM_NOISE( buf, size ));
} /* end PR_GetRandomNoise() */