~ubuntu-branches/ubuntu/oneiric/cups/oneiric

« back to all changes in this revision

Viewing changes to config.h.in

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2010-04-09 16:19:16 UTC
  • mto: (25.1.2 lucid) (55.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100409161916-k0e6prz52ubf4vlg
Tags: upstream-1.4.3
ImportĀ upstreamĀ versionĀ 1.4.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * "$Id: config.h.in 8704 2009-06-10 15:51:21Z mike $"
 
2
 * "$Id: config.h.in 8938 2009-12-18 23:52:01Z mike $"
3
3
 *
4
4
 *   Configuration file for the Common UNIX Printing System (CUPS).
5
5
 *
586
586
 * Which random number generator function to use...
587
587
 */
588
588
 
 
589
#undef HAVE_ARC4RANDOM
589
590
#undef HAVE_RANDOM
590
 
#undef HAVE_MRAND48
591
591
#undef HAVE_LRAND48
592
592
 
 
593
#ifdef HAVE_ARC4RANDOM
 
594
#  define CUPS_RAND() arc4random()
 
595
#  define CUPS_SRAND(v) arc4random_stir()
 
596
#elif defined(HAVE_RANDOM)
 
597
#  define CUPS_RAND() random()
 
598
#  define CUPS_SRAND(v) srandom(v)
 
599
#elif defined(HAVE_LRAND48)
 
600
#  define CUPS_RAND() lrand48()
 
601
#  define CUPS_SRAND(v) srand48(v)
 
602
#else
 
603
#  define CUPS_RAND() rand()
 
604
#  define CUPS_SRAND(v) srand(v)
 
605
#endif /* HAVE_ARC4RANDOM */
 
606
 
593
607
 
594
608
/*
595
609
 * Do we have vproc_transaction_begin/end?
615
629
#endif /* !_CUPS_CONFIG_H_ */
616
630
 
617
631
/*
618
 
 * End of "$Id: config.h.in 8704 2009-06-10 15:51:21Z mike $".
 
632
 * End of "$Id: config.h.in 8938 2009-12-18 23:52:01Z mike $".
619
633
 */