Mercurial > ~mikael > mcabber > hg
view mcabber/src/Makefile.am @ 1497:35020a2ed115
Do not use srand()/rand() if better alternatives exist (mirabilos)
arc4random(3) is a self-seeding PRNG available on a lot of OSes (all BSDs,
Darwin / Mac OSX, Interix / Microsoft® Services for Unix, Windows® 2003SR1,
Windows® Vista, Debian with the new libbsd package installed, ???) and much
better than srand(3)/rand(3).
Thanks to GNU autoconf, this can be made portable.
http://www.mirbsd.org/man/arc4random.3
//mirabilos
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 30 Jun 2008 23:13:50 +0200 |
parents | a8b924b5474c |
children | 8d1bcc83ae32 |
line wrap: on
line source
bin_PROGRAMS = mcabber mcabber_SOURCES = main.c roster.c roster.h events.c events.h \ jabglue.c jabglue.h jab_iq.c jab_priv.h \ commands.c commands.h compl.c compl.h \ hbuf.c hbuf.h screen.c screen.h logprint.h \ settings.c settings.h hooks.c hooks.h utf8.c utf8.h \ histolog.c histolog.h utils.c utils.h pgp.c pgp.h \ fifo.c fifo.h help.c help.h if OTR mcabber_SOURCES += otr.c otr.h nohtml.c nohtml.h endif LDADD = $(GLIB_LIBS) $(GPGME_LIBS) $(LIBOTR_LIBS) \ ../libjabber/liblibjabber.a ../connwrap/libconnwrap.a AM_CPPFLAGS = $(GLIB_CFLAGS) $(GPGME_CFLAGS) $(LIBOTR_CFLAGS) CLEANFILES = hgcset.h if HGCSET BUILT_SOURCES = hgcset.h #mcabber_DEPENDENCIES = hgcset.h \ # ../libjabber/liblibjabber.a ../connwrap/libconnwrap.a hgcset.h: ../hgcset.sh .PHONY: hgcset.h endif #SUBDIRS =