public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Can I add a new built-in macro __builtin_secure_generate_random(void* data, std::size_t size) for C and C++ on hosted GCC platforms that support it?
@ 2021-06-06  6:01 unlvsur unlvsur
  0 siblings, 0 replies; only message in thread
From: unlvsur unlvsur @ 2021-06-06  6:01 UTC (permalink / raw)
  To: gcc

I think compiler time random number is useful for cryptography things like blinding.

This built-in should also be constexpr.

On platforms that does not support this feature (MSDOS) do not define this __builtin.

Users can use

#if __has_builtin(__builtin_secure_generate_random)

#endif

to detect whether this feature is supported.


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-06  6:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-06  6:01 Can I add a new built-in macro __builtin_secure_generate_random(void* data, std::size_t size) for C and C++ on hosted GCC platforms that support it? unlvsur unlvsur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).