X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 915363858283 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1704725803; bh=RRzlbw1ikvL6jAEX1D0v+Ltb7sNwXz2OdpBaqeKif2w=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=l1z6gQ8fLZlMAmUiI4dVDVPcZGYprpV2xS0ovpC1mDv4NqRizFhlMcniMsYLG9mBu SEQugKZnscRVx1VTJ52feLhjRPpPmoacsHZUvqndWILeCb42FxMw/HPSWBXudmaiyb +a271++5ufKHDAn8BoH7FuVdDZ2/lW95hJCGYw3o= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC30538582A6 Date: Mon, 8 Jan 2024 15:55:35 +0100 To: cygwin AT cygwin DOT com Subject: Re: /dev/u?random implementation Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Dec 20 16:32, Jim Garrison via Cygwin wrote: > I dug around in the Cygwin doc looking for details on how /dev/random > and /dev/urandom are implemented, but came up empty. Is this > documented anywhere? Not documented as such, it's a "use the source, luke" kind of information. /dev/random is implemted by calling RtlGenRandom(). /dev/urandom is implemted by calling RtlGenRandom() and, if that fails (which is extremly unlikely) it falls back to a very simple PRNG. Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple