Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't find file 'secure_random' #2

Closed
willysunny opened this Issue Mar 4, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@willysunny
Copy link

willysunny commented Mar 4, 2018

as title suggested

When I tried to build the project, I encountered with this error message

root@ubuntu:~/megadecrypter# crystal build --release src/megadecrypter.cr
Error in src/megadecrypter.cr:4: while requiring "secure_random": can't find file 'secure_random' relative to '/root/megadecrypter/src'

require "secure_random"
^

@denysvitali

This comment has been minimized.

Copy link
Owner

denysvitali commented Mar 7, 2018

Fixed.
SecureRandom was renamed to Random::Secure in 0.24.x.

Apparently I wasn't using random either, it might have been a unused require.
Can you please test (git pull again) and report back if it works? I've just tried on my computer w/ Crystal 0.24.1 (2017-12-20) and it works after my 45dc3f9 commit 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.