X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmagic.h;h=d6094db867b1e3c93c2b8cb035d290576ea024fa;hb=dd6e17e16ffecb25d5e2a08a852244d67af56ef1;hp=38718fb5b955662e0fd47c12ee4fbb360754c3fe;hpb=f53a48eb9d74db3c71938e114b7f489c339bc003;p=ppp.git diff --git a/pppd/magic.h b/pppd/magic.h index 38718fb..d6094db 100644 --- a/pppd/magic.h +++ b/pppd/magic.h @@ -38,9 +38,10 @@ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: magic.h,v 1.4 2002/12/04 23:03:32 paulus Exp $ */ -void magic_init __P((void)); /* Initialize the magic number generator */ -u_int32_t magic __P((void)); /* Returns the next magic number */ +void magic_init (void); /* Initialize the magic number generator */ +u_int32_t magic (void); /* Returns the next magic number */ + +/* Fill buffer with random bytes */ +void random_bytes (unsigned char *buf, int len);