pksunkara / pgx_ulid

Postgres extension for ulid
MIT License
346 stars 21 forks source link

where is rand() #29

Closed orefalo closed 1 year ago

orefalo commented 1 year ago

I am reading the code, of course, I am new to Rust. and I can't find the random generation calls.

How/What do you use for random generation?

in cryptography, faster is not better - need to ensure you use a crypto ready random generator.

Thank you

pksunkara commented 1 year ago

We don't do the random generation ourselves but instead use the library ulid

orefalo commented 1 year ago

I see. let me check overthere if it's crypto secure.

btw, I finally got it compiling. neat extension, thank you