Back to index

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

Go to the source code of this file.


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

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);
    memcpy(dst, src, dstlen);
    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() */