Mercurial > ~mikael > mcabber > hg
view .hgtags @ 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 | a14f99ade244 |
children | 0ae0458b3d88 |
line wrap: on
line source
d33075ba75339fece4d345b8f7cc32a1cf42ee6c 0.6.0 ff9ba796cabba5547b33b096ac48027cb5cc2ccd 0.6.1 bb71b5707b00e6a8cd028e350a33c455692723a5 0.6.2 70914672c8e71ee0e99ecb1f45800216ec9efebe 0.6.3 74cf831b8117f39465d10fbe2bf766a46d60955a 0.6.4 57474402997d76b5fbd5bf6aa796b46b707fd508 0.6.5 7f5135836b565ad5d0fbd73ed1401d00a4bc610a 0.6.6 569f333e51e2f700d362da83da26c4d7badc6bfe 0.6.7 3a613e1d229b901df0324bfe0c4e5ee5b7178691 0.6.8 26f3c7695fe1a806cf3f22bfc2ef49fddef75dcc 0.7.0 1aab64a04c314f5e78cd72ff4ccecffcdf7e2d80 0.7.1 454399f026fa064e0e6a6d58bdac5bbf8445f1ef 0.7.2 414ae36ea26456df3b6d70bd69310c4d2efed8c1 0.7.3 656e6acdac3149b4dcc7fb8089c11540442605ac 0.7.4 23f7e4f472354c9e6ca60f4b8f44f8e3b27b35a3 0.7.5 d9c1901e6a7b507670c0b86640f704482ec8f900 0.7.6 fe57dd753a5619632097bf5e41de019cabce235a 0.7.7 d1d236a4e9a2e765cc0e3507bc2d90bcbe7dde72 0.7.8 5c1dfc8e54d7b4e0eaa269d235792d9bab4982b7 0.8.0 e79d82933deab89c01a94c68f9dd13a3355ce220 0.8.1 fc98d932af4f9eebcab14ef82ea8c10a86c4c3fd 0.8.2 3c8163360a9fb00628b24b27135a216c7de01948 0.8.3 f64af9258f3c5a9ccba0f0a0af67ed354cc75c28 0.9.0 0b71fd19487756e488dedf1ad929082a1630b02d 0.9.1 e411a9def7dac370528d5dc2c4f73af16a3d0630 0.9.2 6cb8edbda6d2d47d11076113a65d771295548a6a 0.9.3 ab1b7f7a682efb7b7c01370bb62cc8419d8ac37a 0.9.4 7b5a2b047efd72c06c6fd775c649c2edc4d08a22 0.9.5 dd565420a1f6002b371c0fb5a7c52118253e91f5 0.9.6 243dc5dbd98788816e4e1c6ecbef9b83fb01c11b 0.9.7