I have a function encode that takes a seed and message to return a cipher.
My issue is that when I tried to use it in my core.cljs file with reagent, the function is silently failing (returning an empty string).
I feel like I'm doing something (or approach) wrong so any quick pointers will be highly appreciated.
(prn (encode "testing" "test")) ;;> ""
(prn (type encode)) ;;> #object[Function]
(prn (type (encode "testing" "jordan"))) ;;> #object[String]
For example I was expecting: "mikmbry" from (encode "testing" "test"). Everything works on the repl but silently fails on core.cljs.
Thanks for your time.
encodefunction?