diff --git a/examples/hellouniverse.nim b/examples/hellouniverse.nim index 9d6ebc6..c07435b 100644 --- a/examples/hellouniverse.nim +++ b/examples/hellouniverse.nim @@ -4,7 +4,7 @@ import random proc createDom(): VNode = result = buildHtml(tdiv): - if random(100) <= 50: + if rand(100) <= 50: text "Hello World!" else: text "Hello Universe" diff --git a/karax/compact.nim b/karax/compact.nim index 3363802..4e5dd6d 100644 --- a/karax/compact.nim +++ b/karax/compact.nim @@ -61,7 +61,7 @@ proc newname*(n: NimNode): NimNode = n[1] = newname(n[1]) result = n elif n.kind == nnkSym: - result = ident($n.symbol) + result = ident(n.strVal) else: result = n