carta
erand48_r(3)

erand48_r3

Generate uniformly distributed pseudo-random numbers reentrantly

Part of drand48_r(3).

Usage

All functions shown above:

Library

Standard C library (libc, -lc)

Overview

These functions are the reentrant analogs of the functions described in drand48(3). Instead of modifying the global random generator state, they use the supplied data buffer.

Before the first use, this struct must be initialized, for example, by filling it with zeros, or by calling one of the functions srand48_r(), seed48_r(), or lcong48_r().

Return value

The return value is 0.

Attributes

For an explanation of the terms used in this section, see attributes(7).

InterfaceAttributeValue
drand48_r(), erand48_r(), lrand48_r(), nrand48_r(), mrand48_r(), jrand48_r(), srand48_r(), seed48_r(), lcong48_r()Thread safetyMT-Safe race:buffer

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie)
  • Debian 12 (Bookworm)
  • Debian 11 (Bullseye)
  • Debian 10 (Buster)
  • Debian 9 (Stretch)
  • Debian 8 (Jessie)
  • Debian 7 (Wheezy)
  • Debian 6.0 (Squeeze)
  • Debian 5.0 (Lenny)
  • Debian 4.0 (Etch)
  • Debian 3.1 (Sarge)

Standards

GNU.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.