fix: CSPRNG on Windows, and a window's first title is the package's app name
Crypto.random_* and Uuid.* read /dev/urandom, which Windows lacks, so every byte was zero; the Windows target now calls RtlGenRandom (advapi32). ludicc takes --title, which ludic build/run/bundle pass from package.ludic's app name, so rt_init opens the window under that name instead of the program name. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
28f661c36f
commit
7f9f8de08a
9 changed files with 33592 additions and 33300 deletions
5
changes/crypto-random-windows.md
Normal file
5
changes/crypto-random-windows.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
bump: patch
|
||||
type: fix
|
||||
`Crypto.random_bytes`, `Crypto.random_hex`, `Crypto.random_u32` and `Uuid.*` draw from the
|
||||
system CSPRNG on Windows (`RtlGenRandom`, advapi32). They read `/dev/urandom`, which Windows
|
||||
does not have, and every byte came back zero.
|
||||
7
changes/window-first-title.md
Normal file
7
changes/window-first-title.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
bump: patch
|
||||
type: fix
|
||||
A windowed game opens under its package's `app name`. `ludic build`, `ludic run` and
|
||||
`ludic bundle` pass it to the compiler (`ludicc --title <name>`), so `game_title()` - the
|
||||
window's first title - is the name the player knows rather than the `program` name, which
|
||||
showed for up to two seconds before the renderer retitled the window. Without an `app name`
|
||||
it is the `program` name, as before.
|
||||
Loading…
Add table
Add a link
Reference in a new issue