Use a better seed for srand()
Use a better seed for srand()

Instead of just time() (which can be easily guessed by an attacker when he gets
a couple of samples of rand() results), this now also uses the current
microseconds, znc's pid and the old PRNG state for computing a seed.


git-svn-id: 3ad904ec35b89a071badd9cb0113dfe58093e920@1813 726aef4b-f618-498e-8847-2d620e286838

Kriechi/nobnc,elyscape/znc,Kriechi/nobnc,Kriechi/znc,elyscape/znc,reedloden/znc,TuffLuck/znc,badloop/znc,Mkaysi/znc,jreese/znc,markusj/znc,Mikaela/znc,psychon/znc,evilnet/znc,GLolol/znc,psychon/znc,GLolol/znc,jantman/znc,elyscape/znc,kashike/znc,jreese/znc,TuffLuck/znc,ollie27/znc,dgw/znc,ollie27/znc,KiNgMaR/znc,Adam-/znc,jreese/znc,Mikaela/znc,Hasimir/znc,BtbN/znc,psychon/znc,YourBNC/znc,ollie27/znc,ollie27/znc,Adam-/znc,Mikaela/znc,ollie27/znc,TingPing/znc,Mkaysi/znc,anthonyryan1/znc,Adam-/znc,withinsoft/znc,TingPing/znc,trisk/znc,YourBNC/znc,KielBNC/znc,DarthGandalf/znc,znc/znc,anthonyryan1/znc,Mkaysi/znc,trisk/znc,badloop/znc,markusj/znc,jpnurmi/znc,TuffLuck/znc,TuffLuck/znc,badloop/znc,Kriechi/znc,jpnurmi/znc,jreese/znc,withinsoft/znc,reedloden/znc,Kriechi/nobnc,Hasimir/znc,Kriechi/znc,Adam-/znc,TingPing/znc,YourBNC/znc,Adam-/znc,evilnet/znc,Zarthus/znc,anthonyryan1/znc,Hasimir/znc,Phansa/znc,markusj/znc,znc/znc,GLolol/znc,wolfy1339/znc,KiNgMaR/znc,Zarthus/znc,Zarthus/znc,Phansa/znc,jpnurmi/znc,BtbN/znc,Hasimir/znc,reedloden/znc,KielBNC/znc,znc/znc,Mkaysi/znc,kashike/znc,GLolol/znc,wolfy1339/znc,trisk/znc,BtbN/znc,DarthGandalf/znc,Adam-/znc,TingPing/znc,aarondunlap/znc,Zarthus/znc,znc/znc,aarondunlap/znc,badloop/znc,Mikaela/znc,aarondunlap/znc,trisk/znc,YourBNC/znc,markusj/znc,Adam-/znc,jantman/znc,Hasimir/znc,trisk/znc,dgw/znc,markusj/znc,Mikaela/znc,kashike/znc,Mkaysi/znc,evilnet/znc,TuffLuck/znc,psychon/znc,jreese/znc,anthonyryan1/znc,withinsoft/znc,znc/znc,KiNgMaR/znc,dgw/znc,Kriechi/znc,jantman/znc,kashike/znc,Kriechi/znc,Hasimir/znc,jpnurmi/znc,withinsoft/znc,wolfy1339/znc,jpnurmi/znc,psychon/znc,Phansa/znc,KielBNC/znc,wolfy1339/znc,jpnurmi/znc,withinsoft/znc,DarthGandalf/znc,KiNgMaR/znc,badloop/znc,evilnet/znc,aarondunlap/znc,jantman/znc,KielBNC/znc,DarthGandalf/znc,YourBNC/znc,elyscape/znc,Kriechi/znc,Zarthus/znc,Phansa/znc,Mkaysi/znc,TingPing/znc,reedloden/znc,GLolol/znc,jreese/znc,BtbN/znc,KielBNC/znc,Mikaela/znc,badloop/znc,Phansa/znc,BtbN/znc,BtbN/znc,GLolol/znc,trisk/znc,aarondunlap/znc,KiNgMaR/znc,KiNgMaR/znc,Mkaysi/znc,jpnurmi/znc,aarondunlap/znc,aarondunlap/znc,YourBNC/znc,Hasimir/znc,kashike/znc,ollie27/znc,Mikaela/znc,evilnet/znc,markusj/znc,kashike/znc,elyscape/znc,wolfy1339/znc,dgw/znc,reedloden/znc,TingPing/znc,anthonyryan1/znc,Phansa/znc,anthonyryan1/znc,anthonyryan1/znc,reedloden/znc,dgw/znc,withinsoft/znc,znc/znc,badloop/znc,elyscape/znc,DarthGandalf/znc,evilnet/znc,psychon/znc,dgw/znc,jantman/znc,Zarthus/znc,TuffLuck/znc,TuffLuck/znc,wolfy1339/znc,KielBNC/znc,jantman/znc,DarthGandalf/znc