Ignore:
Timestamp:
Nov 13, 2017 6:06:25 AM (5 years ago)
Author:
ming
Message:

Re #2062: Remove deprecated Linux kernel implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/compat/rand.h

    r3553 r5692  
    4545#  endif 
    4646 
    47 #elif defined(PJ_LINUX_KERNEL) && PJ_LINUX_KERNEL != 0 
    48    /* 
    49     * Linux kernel mode random number generator. 
    50     */ 
    51 #  include <linux/random.h> 
    52 #  define platform_srand(seed) 
    53  
    54    PJ_INLINE(int) platform_rand(void) 
    55    { 
    56      int value; 
    57      get_random_bytes((void*)&value, sizeof(value)); 
    58      return value; 
    59    } 
    60  
    6147#else 
    6248#  warning "platform_rand() is not implemented" 
Note: See TracChangeset for help on using the changeset viewer.