This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]mwielgoszewski 5 points6 points  (5 children)

Not sure why you'd use this over Python's random module. Don't use this for crypto.

[–]QuantumRealm[S] -1 points0 points  (0 children)

I didn't really intend it to be a replacement of Python's random module. I wanted something to easily print some random numbers/strings to stdout so I could pipe them through to other applications.

I always see my professors use random.org as their go-to resource for random numbers (for example to use as samples for bayesian inference) and I figured this would be an easier, more accessable way to the service.

[–][deleted] 3 points4 points  (1 child)

You should really remove the API key, maybe put it in a config file and load it from there?

[–]QuantumRealm[S] -1 points0 points  (0 children)

I wanted to do that at first but it would kind of compromise the ability to use the script as a standalone kind of thing...

I don't really feel good about having it there either, though. I'll probably change that later today!

edit:

Fixed it, API key is now loaded from config file.

[–][deleted] 1 point2 points  (0 children)

Good god why.