From 9f9e5949c98022ac1b1fef83b2cb765b086fb3ad Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Tue, 21 Jul 2009 07:38:47 +0200 Subject: [PATCH] use a root namespace for Math::Rand --- src/Compiler.pir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compiler.pir b/src/Compiler.pir index 11a073b..d460457 100644 --- a/src/Compiler.pir +++ b/src/Compiler.pir @@ -104,7 +104,7 @@ Markdown::HTML::Compiler implements a compiler for MAST nodes. if $S1 == '@' goto L_dec if $S1 == ':' goto L_raw .local pmc rand - rand = get_hll_global [ 'Math'; 'Rand' ], 'rand' + rand = get_root_global [ 'parrot'; 'Math'; 'Rand' ], 'rand' $I0 = rand() # roughly 10% raw, 45% hex, 45% dec $I0 %= 20