From owner-freebsd-stable Tue Jul 10 5:57:16 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mercury.asuka.ne.jp (mercury.asuka.ne.jp [210.155.86.62]) by hub.freebsd.org (Postfix) with ESMTP id 2D60E37B406 for ; Tue, 10 Jul 2001 05:57:13 -0700 (PDT) (envelope-from yasu@asuka.net) Received: from localhost (localhost [127.0.0.1]) by mercury.asuka.ne.jp (Postfix) with ESMTP id CF0235E5C; Tue, 10 Jul 2001 21:53:29 +0900 (JST) To: mike@sentex.net Cc: jim@siteplus.net, stable@freebsd.org Subject: Re: Generating encrypted passwords From: HIRATA Yasuyuki In-Reply-To: <4.2.2.20010710081901.05a68008@192.168.0.12> References: <200107100306.NAA21657@lightning.itga.com.au> <4.2.2.20010710081901.05a68008@192.168.0.12> X-Face: 7%a.tv,8"?iT8?|]>3u{(,ER`DSn^tGI'OrJaMEv+UaeyiblNlS~N#;!9SaMa=(gI>IuKqsImWzoiTnu|9+xA1g}1==:UHtY-0vrJ&"g9sYUa56<""X)B.3X&r?iDz=K>%W@O(V~r K)`wq+:[`&^!wB[**-!][YRLXPvIn#L?fb1vm$AKQW1X?P1-%?uf@x`&`r>1B;aBjeS([x5yy0+b X-Mailer: Mew/1.94.2 XEmacs/21.5 (anise) (i386-unknown-freebsd4.3) Organization: Asuka.Net X-URL: http://yasu.asuka.net/ X-Moe: =?iso-2022-jp?B?GyRCPzlCdE0lGyhC?=, =?iso-2022-jp?B?GyRCP0BIeDRRTmsbKEI=?= (=?iso-2022-jp?B?OBskQjduGyhCNBskQkZ8MEo5XxsoQg==?=), =?iso-2022-jp?B?GyRCN241XCQiJGYbKEI=?= X-Moe-Info: See http://www.x-moe.org/ for detail. Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010710220142V.yasu@asuka.net> Date: Tue, 10 Jul 2001 22:01:42 +0900 (JST) X-Dispatcher: imput version 20000228(IM140) Lines: 18 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, From: Mike Tancsa To: Jim Weeks Subject: Re: Generating encrypted passwords Date: Tue, 10 Jul 2001 08:23:47 -0400 Message-ID: <4.2.2.20010710081901.05a68008@192.168.0.12> > What about a > srand (time ^ $$ ^ unpack "%L*", `ps -auxw | gzip`); > > at the start of your program If you use perl 5.005 or later, it's better to call srand without seed or not to call srand at all. See perldoc -f srand for detail. ---- HIRATA Yasuyuki http://yasu.asuka.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message