diff pytouhou/game/game.pxd @ 784:1f152ca95658

Replace pytouhou.utils.random.Random with a Rust version libtouhou.Prng now supports having its seed generated randomly using the getrandom crate, and is now exposed to Python.
author Link Mauve <linkmauve@linkmauve.fr>
date Sun, 23 Nov 2025 12:48:03 +0100
parents ec1e06402a97
children
line wrap: on
line diff
--- a/pytouhou/game/game.pxd
+++ b/pytouhou/game/game.pxd
@@ -1,7 +1,6 @@
 from pytouhou.game.effect cimport Effect
 from pytouhou.game.player cimport Player
 from pytouhou.game.text cimport Text, NativeText
-from pytouhou.utils.random cimport Random
 
 cdef class Game:
     cdef public long width, height, nb_bullets_max, stage, rank, difficulty, difficulty_min, difficulty_max, frame
@@ -9,7 +8,7 @@
     cdef public object interface, boss, msg_runner
     cdef public dict texts
     cdef public object sfx_player, music
-    cdef public Random prng
+    cdef public object prng
     cdef public double continues
     cdef public Effect spellcard_effect
     cdef public tuple spellcard