Skip to content

Commit 17c2b17

Browse files
committed
Make get_thread_rng inline function
1 parent 5a58dfc commit 17c2b17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypyc/lib-rt/random/librt_random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ ensure_tls_key(void)
274274

275275
// Get the thread-local RNG, initializing on first use.
276276
// Returns NULL with Python exception set on failure.
277-
static chacha8_rng *
277+
static inline chacha8_rng *
278278
get_thread_rng(void)
279279
{
280280
chacha8_rng *rng = tls_rng;

0 commit comments

Comments
 (0)