The keygen for all of the libraries I have used draw full 256-bit values from OS CSPRNGs. Code audited:
# JavaScript / TypeScript
* nostr-tools (versions 2.15 – 2.23.5)
* @nostr/tools 2.20.0 (the JSR-published variant of nostr-tools)
* @nostr-dev-kit/ndk 2.14.35 (+ ndk-cache-dexie)
* @contextvm/sdk —(ContextVM signer, wraps nostr-tools)
# Go
* go-nostr (nbd-wtf) (v0.27.0, notably older)
# Kotlin / JVM
* no Nostr library; direct implementation on top of ACINQ secp256k1-kmp 0.17.3 (plus BouncyCastle in the Android app)
# Elixir
* no Nostr library; implements on top of lib_secp256k1 0.7.1
# PHP
* swentel/nostr-php 1.9.4 (server side; pulls in elliptic-php)
# Python
* python-nostr


