From owner-freebsd-questions@FreeBSD.ORG Wed May 25 01:36:08 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3F1316A41C for ; Wed, 25 May 2005 01:36:08 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id A266E43D4C for ; Wed, 25 May 2005 01:36:08 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MO-MR010.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0IH000G8EV3YSL@VL-MO-MR010.ip.videotron.ca> for freebsd-questions@freebsd.org; Tue, 24 May 2005 21:35:58 -0400 (EDT) Date: Tue, 24 May 2005 21:35:37 -0400 From: Nicolas Blais In-reply-to: <20050525011818.GA7992@xor.obsecurity.org> To: freebsd-questions@freebsd.org Message-id: <200505242135.57579.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=nextPart1283729.kYUWfthoOU Content-transfer-encoding: 7bit User-Agent: KMail/1.8 References: <200505242113.54226.nb_root@videotron.ca> <20050525011818.GA7992@xor.obsecurity.org> Subject: Re: srandomdev() vs srandom() vs arc4random() X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2005 01:36:09 -0000 --nextPart1283729.kYUWfthoOU Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > arc4random() should produce higher quality randomness, although > srandom() may be good enough for your needs. > > > Finally, is there is a way to check if the call srandomdev() exists on > > other OSes? > > Sure, compile a test app in your configure script :-) > > Kris Thanks, I'm assuming arc4random() is also limited to *BSD? Nicolas =2D-=20 =46reeBSD 6.0-CURRENT #2: Sun May 22 11:29:47 EDT 2005 =20 nicblais@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? : http://66.130.198.54:8081/security/nb_root.asc --nextPart1283729.kYUWfthoOU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBCk9Z9z38ton5LGeIRAp0EAJ9O2IlT6sCwO1YlKAxAthSg+veO3gCgpTFC 4iAf1BxzdN85s275CBUCJIs= =lu8Q -----END PGP SIGNATURE----- --nextPart1283729.kYUWfthoOU--