view .hgsigs @ 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 733845e460b5
children 504287dd2c4d
line wrap: on
line source

ab1b7f7a682efb7b7c01370bb62cc8419d8ac37a 0 iD8DBQBHI0IE5uNrA3mlM9ERAuzyAJ9pyFpTVfJvUuhW7GaY8F9CUJEDxACeL2eqIyCWz2yXtijIXejG4d2lpsM=
7b5a2b047efd72c06c6fd775c649c2edc4d08a22 0 iD8DBQBHQgEq5uNrA3mlM9ERAmSuAKCXBt2U4qilDPlizzkKNeStxd3RmwCfcyOaRAunLlc23Pyz2SXRWxRxJIg=
dd565420a1f6002b371c0fb5a7c52118253e91f5 0 iD8DBQBHie9m5uNrA3mlM9ERAsRUAKCd1657SxdSdtJ57JtuIJWrRz/37QCgr601iQWm7at8PpuwmARrd4HTPXc=
243dc5dbd98788816e4e1c6ecbef9b83fb01c11b 0 iD8DBQBIB6ij5uNrA3mlM9ERAsPuAJ4jnsoDC3P4f8dHVsbA07LQqFDNLQCfUKBpd53SUioEdNwUvuxXd6BH3bY=