libosmocore[master]: Add osmo_rand() function

Harald Welte gerrit-no-reply at
Tue Feb 28 18:51:36 UTC 2017

Patch Set 2:

I think it would be best to map this to the linux getrandom(2) syscall by default.  It is in mainline linux kernel since 2014, and we should use it by default to avoid any external crypto library dependency.  If this syscall exists at compile time (we can check with autoconf if the function getrandom() is defined in linux/random.h), then we should use it.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I0241b814ea4c4ce1458f7ad76e31d390383c2048
Gerrit-PatchSet: 2
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at>
Gerrit-Reviewer: Harald Welte <laforge at>
Gerrit-Reviewer: Holger Freyther <holger at>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at>
Gerrit-HasComments: No

More information about the gerrit-log mailing list