X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A98C3858428 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1699655290; bh=MX24vhnZ7cAvM3jZrrWBj2+yy88iwTMmTH2COZlLQsw=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=ua+JtTJ1yUNt5LnA3+hqKJ9BE83jGaIxkYDLuN7+uKQqVWFSjcfyfA5fi8amBJO3G arGklCq/KNSSjMZjvr+Iz4dMBlIqqeT4wy56UHrqZcJwWuWhgzrcM1i0qIwsWra8yM AmKp95QXFPfargR1QPrNGvREQ45cy14fjfs7tv6c= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 343353858D37 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 343353858D37 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1699655276; cv=pass; b=kYHoRVZikSCA00k8e0tmYP+xRMxmksB1MEPEeprhKzIeAugl4xUedG7wIh/MWklAqvlpOREKCqC8gODw3g/TJMYTPJxMAhAEB9gtDhNlKlzivIoi0VaQ7Gyl67qUjaPB+UhnsT4Li8FxpYgTl2GvvEISRyLCVRm1SKCZlVnmkro= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1699655276; c=relaxed/simple; bh=1kXPP5Ql2i255W0SC0qfNbEhBYzOty8iLRn9Hth4SgM=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=MN8mWo7eDj5l97DvBgb8L54erV0OXC2lFw/jMy9XD9KgSktc6hqrJZtKyqQAjy7Muf8qSgnNvHhtAiMyy6awlBJAWtFcpBiV4Hn7yrraIAeoMXrcjUUSm9XJJyRWJisFzwUPtMMH2gYBT15x4NCOrmzVWUrA7SRjWHpsOO9Jvfc= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; t=1699655269; cv=none; d=strato.com; s=strato-dkim-0002; b=dtOIf8TrjWdGpzzCokG7c3BiU+YYbcxZJZUeJypOwe6vw61e/+Ok7krdzmdBNgK+Sl thnqTx8yQJEhcNjdDjxF35umTu9CMhvva89u4B+GyoRELvWDHD7qw8MjPFtc0OF/k4Sf TmvHWcYfJtP8zU4VN1HDuD2gmDBGrIdX4dMrQ3jdLzv1jGon98UwSK3PtssRo60o0CGt xnQP2CDgphZ3kA9ULHEPcFGCyekXHUTtkC0ZG+tj+o2IXALtGoe+1Em3xfM+ewBaA9xw /9D5p/E44o3tZ2cPTayg1uGGKbzgKS4kv/peZ/Q3B9ypcBGAQbueIT0y73R3QRLcyB/s 8Pfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1699655269; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:To:From:Cc:Date:From: Subject:Sender; bh=SoK0/bzjdTBmNJOf6yHlQoooz6FJwTX964jXFvLgbAQ=; b=oOPWc/111HHO2hiKRArQX3vKeO9dVitGn31KLHeEKTcut8FOEBshjjwjTELYGzwEiq I9ndOtPJly7nWkLe96cqLeo9clDEun0At3IHehomJ5QZ34y/VdR2qmawJ5D1qGW9Nd1G lrrP62ZFJscthd7JvSLXHR1cj4+lug+tw0BOCJX9H30er0k3HJbYW+0jbZE+f63XC7WO WEOlLmvn8xx9z3DVaWVn1QDuaxxrjjuZa3drLXdezGJID7/qq4sD8/eqoDzSWGbfYc+d 13U/4lYq206+kM8iwmE04sZk1ii2/RlCu93piVVpEXWLmJhAJW9o9d7iPUQzRA6wBg3c +rPA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpPFiqE704vkIqtWgwFF3XILNhA=" To: cygwin AT cygwin DOT com, Norton Allen Subject: Re: rand is not ISO C compliant in Cygwin Date: Fri, 10 Nov 2023 23:27:49 +0100 Message-ID: <5748524.yeFs27NDWt@nimes> In-Reply-To: References: <9938355 DOT c9vzh5UkMf AT nimes> MIME-Version: 1.0 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: Bruno Haible via Cygwin Reply-To: Bruno Haible 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" Norton Allen wrote: > Cygwin/(newlib?) has chosen to avoid race conditions by making > pseudo-random sequences in different threads independent. Although the > standard does not require this, it does not prohibit it either. I disagree. I cited the relevant sentences from the standard. Other platforms (glibc, Android) avoid race conditions in rand() by locking. Which is compliant with the standard. Bruno -- 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