delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/01/08/09:56:44

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: <ZZwM552P8iaSJJzM@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <e2f2ea3c-6039-428a-b122-635130dac15a AT jhmg DOT net>
MIME-Version: 1.0
In-Reply-To: <e2f2ea3c-6039-428a-b122-635130dac15a@jhmg.net>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019